.hidden {
  display: none !important;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;
  /* Firefox, other Gecko */
  box-sizing: border-box;
  /* Opera/IE 8+ */
  padding: 0;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  tab-size: 4;
  padding: 0;
  margin: 0;
  color: hsl(var(--color-text));
  background-color: hsl(var(--color-background));
  transition: color, background-color 0.2s ease-out;
}

code {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono",
    Menlo, Consolas, monospace;
  font-size: 0.875em;
  line-height: 1.25rem;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: hsl(var(--color-text));
  text-decoration: none;
  transition: color 0.2s ease-out;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  color: hsl(var(--color-text));
  transition: color 0.2s ease-out;
}

input[type="checkbox"] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  appearance: none;
  /* For iOS < 15 to remove gradient background */
  background-color: #fff;
  /* Not removed via appearance */
  margin: 0;

  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  color: hsl(var(--color-background));
  border: 1px solid hsl(var(--color-border));
  background-color: hsl(var(--color-code-background));
  border-radius: 0.15em;
  transform: translateY(0.2em);
  transition: background-color 0.2s ease-out;
}

input[type="checkbox"]:checked {
  background-color: hsl(var(--color-link));
  color: hsl(var(--color-background));
}

input[type="checkbox"] {
  display: inline-flex;
  color: hsl(var(--color-background));
}

input[type="checkbox"]::before {
  content: "";
  color: hsl(var(--color-background));
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%) scale(0);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="%23ffffff" d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s ease-out;
}

input[type="checkbox"]:checked:before {
  transform: translate(-50%, -50%) scale(1);
}

.container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  border-bottom: 1px solid hsl(var(--color-border));
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-bottom 0.2s ease-out;
}

.header>.logo {
  width: 100%;
  padding: 0 3rem;
}

.header>.logo>img {
  height: 2rem;
}

.header>.logo>h1 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

.header>.search {
  width: 100%;
  padding: 0 3rem;
}

.header>.search>input {
  width: 100%;
  border: 1px solid hsl(var(--color-border));
  padding: 0.5rem 1rem;
  outline: none;
  text-align: center;
  transition: border 0.2s ease-out;
}

.header>div:nth-child(3) {
  width: 100%;
  padding: 0 3rem;
}

.content {
  width: 100%;
  display: flex;
  flex: 1;
}

.content>.sidebar {
  width: 20rem;
  border-right: 1px solid hsl(var(--color-border));
  transition: border-right 0.2s ease-out;
}

.content>.sidebar>ul {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  line-height: 1.25rem;
  list-style: none;
  padding: 2rem;
  position: sticky;
  top: 0;
}

.sidebar .nav-section-heading {
  font-weight: 700;
  padding-inline: 1rem;
  padding-bottom: 0.5rem;
}

.sidebar .nav-section-heading:not(:first-child) {
  padding-top: 1.5rem;
}

.sidebar .nav-section-link>a {
  color: hsl(var(--color-text));
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.sidebar .nav-section-link>a>div {
  color: hsl(var(--color-text-muted));
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease-out;
}

.sidebar .nav-section-link:hover>a>div {
  background-color: hsl(var(--color-background-hover));
  color: hsl(var(--color-text));
  transition: color, background-color 0.2s ease-out;
}

.sidebar .nav-section-link #current {
  color: hsl(var(--color-text));
  font-weight: 600;
  transition: color 0.2s ease-out;
}

.content>.main {
  flex: 1;
  padding: 0 2rem;
}

.content>.main>main {
  max-width: 60rem;
  margin-inline: auto;
  padding: 2rem 0;
}

.footer {
  position: fixed;
  bottom: 1rem;
  right: 2rem;
  font-size: 0.875rem;
  color: hsla(var(--color-text-muted) / 0.6);
}

.footer > a {
  color: hsl(var(--color-link));
}