/* Forum frame on narrow screens. The legacy theme (style.css) is a fixed 1012px frame on a
   1080px-wide body; below that the frame shrinks and the post tables stack. Loaded last. */

.forum-logo {
  float: right;
}

.forum-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px 50px 0 0;
}

.forum-copyright {
  margin-top: 150px;
  color: #fff;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 1080px) {
  body {
    min-width: 0;
  }

  #contentContainer {
    box-sizing: border-box;
    width: auto;
    max-width: 1012px;
    margin: 0 8px;
  }
}

@media (max-width: 760px) {
  .forum-logo {
    float: none;
    padding: 0 16px;
  }

  .forum-logo img {
    width: 240px;
    margin: 24px auto 0;
  }

  #contentContainer {
    top: 24px;
    margin: 0 4px;
  }

  #contentInnerTwo {
    padding: 22px 14px;
  }

  #forum_header_inner {
    height: auto;
    min-height: 80px;
    padding-bottom: 12px;
  }

  #forum_shield {
    width: 64px;
    height: 70px;
    background-size: 90px auto;
    background-position: -12px -10px;
  }

  #forum_title_container h2 {
    padding-top: 8px;
    font-size: 21px;
  }

  p#forum_info_breadcrumbs {
    margin-left: 64px;
    padding-left: 18px;
    line-height: 16px;
  }

  .forum-copyright {
    margin-top: 60px;
    padding: 0 12px;
  }

}

@media (max-width: 760px) {
  /* Board page */
  .board-view__head {
    flex-wrap: wrap;
  }

  .board-view__intro {
    flex: 1 1 calc(100% - 70px);
  }

  .board-view__head > .ui-btn {
    margin-left: 67px;
  }

  .board-view__toolbar {
    flex-wrap: wrap;
  }

  .forum-search {
    width: 100%;
    max-width: 687px;
  }

  .board-view .forum-search__input {
    min-width: 0;
  }

  .thread-list th:nth-child(3),
  .thread-list td:nth-child(3),
  .thread-list th:nth-child(4),
  .thread-list td:nth-child(4) {
    display: none;
  }

  .thread-list__thread {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  /* Profile page */
  .user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .user-stats .stat {
    margin: 0;
  }
}
