@use '../abstracts/variables';
@use '../abstracts/mixins';
@use '../abstracts/typography';
/* 
Html and Body 
*/
html {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  text-size-adjust: none; /* Prevent font scaling in landscape */
  font-size: variables.$font-size-base;
  overflow-x: hidden;
}

body {
  @include typography.body-large;
  color: variables.$sodra-black;
  position: relative;
  min-height: 100%;
  margin: 0;
  padding: 0;
  transition: none !important;
  height: initial;

  @include mixins.browser-edge {
    height: auto !important;
  }
}

html {
  height: 100%;
}

img {
  max-width: 100%;
}

a {
  color: variables.$sodra-black;
}

a:hover {
  color: variables.$sodra-black;
}

a:active {
  color: variables.$sodra-black;
}

p {
  margin: 0 0 15px;
}

ul {
  padding-inline-start: 1rem;
}

ul ul {
  margin-bottom: 0;
}

figure {
  padding: 0;
  margin-bottom: 10px !important;

  img {
    margin-bottom: 10px;
  }
}

iframe {
  max-width: 100%;
}

/*
Headings common style
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  display: block;
  margin: 0;
  margin-bottom: 0.5rem;
}

pre {
  @include typography.body-medium;
}

cite {
  @include typography.alt-label-small;
}

blockquote {
  quotes: '\201C' '\201D';
  @include typography.display-x-large;
  line-height: 54px;
  p {
    display: block;
    @include typography.display-x-large;
    line-height: 54px;
  }

  p:first-of-type {
    &:before {
      content: open-quote;
    }
  }

  p:last-of-type {
    &:after {
      content: close-quote;
    }
  }
}

figcaption {
  @include typography.alt-label-small;
  text-transform: initial;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: variables.$sodra-black;
  font-style: italic;
}

code {
  padding: 2px 4px;
  font-family: Consolas, monaco, monospace;
  font-size: 12px;
  color: #c7254e;
  background-color: #f9f2f4;
  border-radius: 4px;
}

hr {
  height: 2px;
  margin: 1rem 0;
  background: variables.$sodra-black;
}

small {
  font-size: 12px;
}

strong,
b {
  font-weight: 700;
}

label {
  @include typography.body-large;
}

a {
  text-decoration: none;
}

a,
button {
  cursor: pointer;
}

sub {
  vertical-align: sub;
  font-family: sans-serif, arial;
  font-size: smaller !important;
}

sup {
  vertical-align: super;
  font-family: sans-serif, arial;
  font-size: smaller !important;
}
