/*
 * Static archive compatibility for the recovered Keilame Curve theme.
 * The base stylesheet and image assets come from the restored forum install;
 * this file only adapts the database-free archive markup and small screens.
 */

html {
  min-width: 320px;
  background: #e9eef2;
}

body.keilame-static {
  --forum-accent: #6d8ba7;
  --forum-accent-dark: #3f607e;
  --forum-border: #b7c4cf;
  --forum-soft: #edf2f6;
  min-height: 100vh;
}

.keilame-static .static-forum-notice,
.keilame-static .forum-wrapper {
  width: 90% !important;
  max-width: 2300px;
}

.keilame-static .forum-wrapper {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.keilame-static #header {
  box-sizing: content-box;
}

.keilame-static #header div.frame {
  box-sizing: content-box;
}

.keilame-static #upper_section .user .info {
  padding: 4px 0;
  line-height: 1.45;
}

.keilame-static #main_menu a.active span.firstlevel,
.keilame-static #main_menu a:hover span.firstlevel {
  color: #fff;
}

.keilame-static #content_section {
  box-sizing: content-box;
  padding: 0 0 0 20px;
}

.keilame-static #content_section > .frame {
  box-sizing: content-box;
  padding: 0 20px 18px 0;
}

.keilame-static .archive-breadcrumbs {
  margin-bottom: 10px;
  border-color: #c7d0d9;
  border-radius: 0;
}

.keilame-static .archive-forum-intro,
.keilame-static .archive-section-heading,
.keilame-static .archive-topic-list,
.keilame-static .archive-forum-post,
.keilame-static .archive-provenance,
.keilame-static .archive-totals {
  border-color: #b7c4cf;
  border-radius: 0;
}

.keilame-static .archive-forum-intro,
.keilame-static .archive-section-heading,
.keilame-static .archive-totals,
.keilame-static .archive-provenance,
.keilame-static .archive-forum-post {
  background: #f0f4f7;
}

.keilame-static .archive-board-category {
  overflow: hidden;
  margin-bottom: 12px;
  background: #f0f4f7;
  border: 0;
  border-radius: 0;
}

.keilame-static .archive-board-category > .cat_bar {
  margin-bottom: 1px;
}

.keilame-static .archive-board-category h3 {
  margin: 0;
  padding-bottom: 0;
}

.keilame-static .archive-board-row {
  grid-template-columns: 52px minmax(0, 1fr) 110px 230px;
  min-height: 72px;
  border: 1px solid #c5ced6;
  border-top: 0;
}

.keilame-static .archive-board-row:nth-child(odd) {
  background: #f0f4f7;
}

.keilame-static .archive-board-icon img {
  width: auto;
  max-width: 32px;
}

.keilame-static .archive-board-title {
  color: #346;
}

.keilame-static .archive-board-stats,
.keilame-static .archive-board-last {
  border-color: #cbd4dc;
}

.keilame-static .archive-topic-list > header,
.keilame-static .archive-forum-post > header {
  background: #99abbf url("theme/images/theme/main_block.png") no-repeat 0 -160px;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .35);
}

.keilame-static .archive-topic-row:nth-child(odd),
.keilame-static .archive-forum-post:nth-of-type(odd) {
  background: #e7eaef;
}

.keilame-static .archive-topic-row:nth-child(even),
.keilame-static .archive-forum-post:nth-of-type(even) {
  background: #f0f4f7;
}

.keilame-static .static-forum-footer {
  width: 90%;
  max-width: 2300px;
  margin-right: auto;
  margin-left: auto;
  color: #53616f;
  background: transparent;
  border: 0;
}

@media (max-width: 760px) {
  .keilame-static .static-forum-notice,
  .keilame-static .forum-wrapper,
  .keilame-static .static-forum-footer {
    width: calc(100% - 16px) !important;
  }

  .keilame-static #header {
    padding-left: 12px;
  }

  .keilame-static #header div.frame {
    padding-right: 12px;
  }

  .keilame-static #top_section {
    min-height: 52px;
  }

  .keilame-static h1.forumtitle {
    font-size: 1.5em;
  }

  .keilame-static #siteslogan {
    font-size: .85em;
  }

  .keilame-static #upper_section div.user,
  .keilame-static #upper_section div.news {
    float: none;
    width: 100%;
    text-align: left;
  }

  .keilame-static #upper_section div.news {
    margin-top: 8px;
  }

  .keilame-static #main_menu {
    overflow-x: auto;
    white-space: nowrap;
  }

  .keilame-static #content_section {
    padding-left: 10px;
  }

  .keilame-static #content_section > .frame {
    padding-right: 10px;
  }
}
