body {
  grid-template-columns: 1fr min(55rem, 100%) 1fr;
  margin: 0 1rem 0 1rem;
}

#navigation {
  margin: .5rem 0 .5rem 0;
  text-align: right;
}

#site-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-gap: .5rem;
}

#sidebar {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 0.5rem;
  border-radius: 10px;
  max-height: 90vh;
  max-height: 90svh;
  overflow: auto;
}

#filters-sidebar, #main-content {
  max-height: 90vh;
  max-height: 90svh;
  overflow: auto;
}

/* search bars */
#search-sidebar {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.25rem;
  justify-content: center;
  align-items: center;
}

#search-sidebar input[type="text"] {
  width: 100%;
  margin: 0 0 .25rem 0;
  outline: none;
  border: 2px dashed var(--bg-light);
  border-radius: 5px;
}

#search-sidebar input:focus[type="text"] {
  border: 2px solid var(--accent);
  outline: none;
}

#search-buttons {
  display: flex;
  gap: 1rem;
  justify-content: space-evenly;
  align-items: center;
}

/* tag filters */
#tag-filter, #author-filter {
  background: var(--bg-light);
  border-radius: 10px;
  margin: .75rem;
  padding: .25rem;
}

#tag-filter ul, #author-filter ul {
  padding-left: 1.6rem;
  margin: 0;
}

#tag-filter ul li, #author-filter ul li {
  cursor: pointer;
  font-size: .85rem;
  border-radius: 5px;
  transition: color 0.1s ease;
}

#tag-filter ul li:hover, #author-filter ul li:hover {
  color: var(--accent);
  transition: color 0.1s ease;
}

.icons {
  width: 1.3rem;
  height: 1.3rem;
  aspect-ratio: 1/1;
  display: inline-block;
  vertical-align: middle;
  color: var(--text);
  fill: var(--text);
  background-color: transparent;
  cursor: pointer;
}

.icons:hover {
  background-color: transparent;
  color: var(--accent);
}

/* responsive sidebar */
@media screen and (max-width: 768px) {
    #site-wrapper {
        grid-template-columns: 1fr; /* Sidebar takes the full width */
    }

    #sidebar {
        padding: 1rem;
    }
}
