﻿
@layer reset {

  html {
    font-size: var(--ts-fs-html) !important;
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
    scroll-padding-bottom: 150px;
    scroll-behavior: smooth;
    -ms-overflow-style: scrollbar;
  }

  body {
    font-family: var(--ts-ff-body);
    font-size: var(--ts-fs-df);
    color: var(--body-text-color);
    background: var(--body-bg-color);
    min-width: 400px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    position: relative;
  }
  
  a {
    text-decoration: none;
    color: var(--link-color);
    background-color: var(--link-bg);
    cursor: pointer;
    &:hover {
      color: var(--link-hover);
      text-decoration: underline;
    }
    &:focus {
      color: var(--link-focus);
      text-decoration: underline;
    }
  }

  main {
    margin: 10px 0px 0px 0px;
    padding-bottom: 100px;
  }

  html.fixed-footer body > footer {
    position: fixed;
  }

  body > footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 600;
    color: #fff;
    background: black;
    margin: 0;
    padding: 10px;
    box-shadow: 0px 0px 10px #666;

    a {
      color: inherit;
      text-decoration: none;
      font-size: var(--ts-fs-sm);

      &:hover,
      &:focus {
        color: inherit;
        text-decoration: underline;
      }
    }
  }

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

  *:focus-visible,
  a:focus-visible,
  input:focus-visible {
    outline: var(--outline);
    outline-offset: 2px;
  }

  .h1, .h2, .h3, .h4, .h5, .h6,
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
  }

  tr:target {
    background: var(--target-highlight-color);
  }
}
