#post-header {
  background-color: var(--primary-color);
}

#post-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #fff;
  padding: 40px 0;
}

#post-header .post-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  & a {
    color: var(--secondary-color);
  }
}

main#content {
  overflow: unset;
}

.page-content {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 16px;
  padding: 40px 0;
}

.post-content-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#list-of-contents {
  border: 1px dashed #eee;
  padding: 32px;
}

.content-list-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.content-list-heading {
  font-size: 1.2rem;
  font-weight: 800;
}

.content-list-toggle {
  font-size: 12px;
}

ul.content-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 0 0;
  list-style: inside
    url(/wp-content/themes/hello-child/assets/img/leafs-logo-dark-yellow.webp);
}

.post-content {
  border: 1px dashed #eee;
  padding: 32px;
  & img {
    margin: 16px 0;
  }
}

aside.post-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.post-bottombar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  & img {
    width: 100%;
  }
}

section#comments {
  border: 1px dashed #eee;
  padding: 32px;
}

.woocommerce-Reviews-title,
.comment-reply-title,
.comment-reply-title-sub {
  text-align: right;
}

[type="button"],
[type="submit"],
button {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  &:hover {
    background-color: var(--primary-color);
  }
  &:focus {
    outline: none;
    background-color: var(--primary-color);
  }
}

@media (max-width: 768px) {
  #post-header .container {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    margin: auto;
    & img {
      width: 100%;
    }
  }

  h1 {
    font-size: 16px;
  }

  nav.rank-math-breadcrumb {
    font-size: 12px;
    text-wrap: nowrap;
    overflow-x: auto;
    &::-webkit-scrollbar {
      display: none;
    }
  }

  .page-content {
    grid-template-columns: 1fr;
    padding: 24px 12px;
  }

  .post-content {
    font-size: 14px;
    line-height: 3;
    padding: 16px;
  }

  #list-of-contents {
    padding: 16px;
    font-size: 14px;
  }

  .content-list-toggle {
    padding: 4px 12px;
  }

  section#comments {
    padding: 16px;
    max-width: calc(100% - 24px);
    margin: auto;
  }
}
