/*
  @file Base/element level theming.

  This file sets up default CSS for elements, such as links as
  well as font sizes, vertical rhythm, etc.
*/

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin-top: 0;
  transition: var(--transition-time);
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  ::before,
  ::after {
    animation: none;
  }
}

body {
  margin: 0;
  background: var(--theme-dark-body-background);
  color: var(--theme-dark-body-color);
  font-family: var(--font-family-primary);
  font-size: var(--font-size);
  line-height: var(--line-height-body);
}

/*
  Position the main canvas relative so anything further down the page that
  might use absolute will not cover the admin toolbar.
*/
.dialog-off-canvas-main-canvas {
  position: relative;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
}

a:focus-visible {
  text-decoration: none;
}

p>a {
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
}

p>a:hover {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
ul,
ol,
pre,
table,
blockquote {
  margin-bottom: var(--spacing-md);
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-bottom: 0;
}

sub,
sup {
  position: relative;
  vertical-align: baseline;
  line-height: 0;
}

sup {
  top: -0.5rem;
}

sub {
  bottom: -0.25rem;
}

table {
  width: 100%;
  text-align: left;
  border: var(--table-border-default);
  border-collapse: collapse;
}

thead th {
  padding: var(--table-padding-default);
  background-color: var(--table-bg-color-default);
}

tbody td {
  padding: var(--table-padding-default);
}

tbody tr {
  border-bottom: var(--table-border-default);
}

.ajax-progress.ajax-progress-fullscreen {
  background-color: var(--color-pastel-pink);
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
