body {
  @include Layout.stack(0);
  color: rgb(var(--text));
  background: rgb(var(--background));
  min-height: 100vh;
}

#page {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100vw;
  margin: 0;
  padding: scale.$lg-3 scale.$lg-4 scale.$lg-5;
}

.svg-patterns {
  display: none;
}

h1,
h2,
h3,
h4 {
  margin-bottom: scale.$sm-3;
}

h1 {
  @include Typography.Heading(1);
}

h2 {
  @include Typography.Heading(2);
}

h3 {
  @include Typography.Heading(3);
}

h4 {
  @include Typography.Heading(4);
}

p {
  margin: 0;
}

aside {
  padding-top: scale.$lg-6;
}

.grid {
  display: grid;

  &--menu-with-panel {
    grid-gap: 36px;
    grid-template-columns: 23vw auto;
    grid-template-areas: 'menu panel';
  }

  &--overview-timeline {
    width: 100%;
    grid-template-columns: 50% 50%;
  }
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.sidebar {
  grid-area: menu;
  overflow: scroll;
  height: 0;
  min-height: 100%;

  li:first-child {
    hr {
      border-top: 0;
    }
  }

  .active {
    background-color: rgb(var(--highlighted-list-item));

    @media (prefers-color-scheme: dark) {
      color: rgb(var(--highlighted-list-item-text));
    }

    hr {
      border-top: 1px solid transparent;
    }
  }

  .active + li {
    hr {
      border-top: 1px solid transparent;
    }
  }
}

.panel {
  grid-area: panel;
}

:any-link:not(.pds-button) {
  border-bottom: none;
}

.list-heading {
  @include Typography.Heading(3);
}

// Waypoint styles

code {
  font-family: var(--monospace);
  white-space: nowrap;
  color: rgb(var(--text));
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

pre code {
  white-space: pre;
}

hr {
  margin: scale.$lg-1 0;
  border: none;
  border-top: 1px solid rgb(var(--border));
}
