@charset "UTF-8";
@import 'highlight.js.css';

.rimg img,
.limg img,
.cimg img,
.img img,
.scp-image-block img {
  /*
  compatibility patch for some unobvious stuff that started working differently after moving away from XHTML
  https://stackoverflow.com/questions/10844205/html-5-strange-img-always-adds-3px-margin-at-bottom 
  */
  vertical-align: middle;
}

.w-list-pages {
  position: relative;
}

.printuser.avatarhover img.small {
  padding: 0;
  border: 1px solid #777;
}

.printuser {
  white-space: nowrap;
}

.mod-by .printuser {
  white-space: initial;
}

.printuser a {
  margin-right: 0;
}

.w-stars-rate-module {
  width: 128px;
  display: inline-block;
  color: black;
  margin-bottom: 16px;
}
.w-stars-rate-module .w-stars-rate-number {
  color: #000000;
  font-weight: bold;
}
.w-stars-rate-module .w-stars-rate-rating {
  position: relative;
  z-index: 0;
  background: #ddd;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
  padding: 2px 8px;
  text-align: center;
  margin-left: 8px;
  margin-right: 8px;
}
.w-stars-rate-module .w-stars-rate-control {
  position: relative;
  z-index: 1;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px rgba(102, 102, 102, 0.3098039216);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  height: 24px;
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-stars-wrapper {
  position: relative;
  font-size: 150%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-stars-wrapper:before {
  font-family: "Font Awesome 5 Free";
  position: relative;
  left: 1px;
  font-weight: 900;
  font-size: 13px;
  line-height: 13px;
  content: "\f005\f005\f005\f005\f005";
  letter-spacing: 2px;
  color: #eee;
  white-space: nowrap;
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-stars-wrapper .w-stars-rate-stars-view {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-stars-wrapper .w-stars-rate-stars-view:before {
  font-family: "Font Awesome 5 Free";
  position: relative;
  left: 1px;
  font-weight: 900;
  font-size: 13px;
  line-height: 13px;
  content: "\f005\f005\f005\f005\f005";
  letter-spacing: 2px;
  white-space: nowrap;
  color: var(--rated-var, #000000);
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-stars-wrapper .w-stars-rate-stars-view {
  overflow: hidden;
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-stars-wrapper:hover .w-stars-rate-stars-view:before {
  color: #f0ac00;
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-cancel {
  width: 16px;
  height: 16px;
  background: #eee;
  cursor: pointer;
  border-radius: 3px;
  margin-left: 8px;
  text-align: center;
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-cancel:before {
  content: "×";
}
.w-stars-rate-module .w-stars-rate-control .w-stars-rate-cancel:hover {
  background: #ec3f3f;
  color: white;
}
.w-stars-rate-module .w-stars-rate-votes {
  position: relative;
  z-index: 0;
  background: #ddd;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
  padding: 2px 8px;
  font-size: 75%;
  text-align: center;
  margin-left: 8px;
  margin-right: 8px;
  color: #000000;
  font-weight: bold;
}

.w-code {
  white-space: pre !important;
}

/* User rate on forum post */
.thread-container .post .long .head .vote {
  flex-grow: 1;
  text-align: right;
  color: #666;
}
.thread-container .post .long .head .rate {
  font-weight: bold;
}
.thread-container .post .long .head .rate::before {
  font-family: "Font Awesome 5 Free";
  content: "\f005";
  letter-spacing: 2px;
  color: #666;
}
/* ======================= */

/* New forum triks */
.thread-container .post .long .head.op-post {
  background: #e0e0e0;
}

#new-post-div table.form {
  margin: 1em 0;
}
/* =============== */

.printuser .badge {
  background: gray;
  padding: 0px 2px 0px 2px;
  border-radius: 3px;
  color: white;
  font-weight: 500;
  font-size: 0.75em;
  height: 1.5em;
  display: inline-flex;
  align-items: center;
  vertical-align: text-top;
  box-sizing: border-box;
}

.printuser .icon {
  display: inline-flex;
  vertical-align: text-top;
  height: 14.4px;
  width: 14.4px;
}

.w-user-mention {
  color: #1f6feb !important;
  background: rgba(31, 110, 235, 0.08);
  border-radius: 3px;
}

.w-search {
  --s-bg: var(--wk-surface, #ffffff);
  --s-alt: var(--wk-surface-alt, #f6f8fc);
  --s-sunken: var(--wk-surface-sunken, #eaeef6);
  --s-ink: var(--wk-ink, #1a1a1a);
  --s-soft: var(--wk-ink-soft, #4a5568);
  --s-muted: var(--wk-ink-muted, #78849a);
  --s-border: var(--wk-border, #dce2ee);
  --s-border-strong: var(--wk-border-strong, #c2cbdd);
  --s-accent: #111111;
  --s-radius: 0;
  --s-radius-sm: 0;
  font-family: var(--wk-font, inherit);
  color: var(--s-ink);
  max-width: 760px;
  margin: 1em 0;
}

.w-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--s-ink);
  background: var(--s-bg);
  border: 1.5px solid var(--s-border-strong);
  border-radius: var(--s-radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.w-search-input::placeholder {
  color: var(--s-muted);
}

.w-search-input:focus {
  border-color: var(--s-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.w-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.w-search-filter {
  flex: 1 1 140px;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--s-ink);
  background: var(--s-alt);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-sm);
  outline: none;
}

.w-search-filter:focus {
  border-color: var(--s-accent);
  background: var(--s-bg);
}

.w-search-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 260px;
}

.w-search-date {
  flex: 1 1 auto;
}

.w-search-date-sep {
  color: var(--s-muted);
}

.w-search-total {
  margin: 14px 2px 6px;
  font-size: 12px;
  color: var(--s-muted);
}

.w-search-error {
  margin-top: 12px;
  padding: 10px 12px;
  color: #b22334;
  background: rgba(200, 40, 60, 0.08);
  border: 1px solid rgba(200, 40, 60, 0.2);
  border-radius: var(--s-radius-sm);
  font-size: 13px;
}

.w-search-empty {
  margin-top: 18px;
  text-align: center;
  color: var(--s-muted);
  font-size: 14px;
}

.w-search-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.w-search-result {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--s-radius-sm);
  transition: background 0.12s, border-color 0.12s;
}

.w-search-result:hover {
  background: var(--s-alt);
  border-color: var(--s-border);
}

.w-search-result-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--s-ink) !important;
  text-decoration: none;
}

.w-search-result-title:hover {
  text-decoration: underline;
}

.w-search-result-excerpt {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--s-soft);
}

.w-search-result-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--s-muted);
}

.w-search-result-author {
  color: var(--s-muted) !important;
  text-decoration: none;
}

.w-search-result-author:hover {
  text-decoration: underline;
}

.w-search .highlight {
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  border-radius: 0;
  padding: 0 1px;
}

.w-search-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  font-size: 14px;
  color: var(--s-ink);
  background: var(--s-bg);
  border: 1px solid var(--s-border-strong);
  border-radius: var(--s-radius-sm);
  cursor: pointer;
  transition: background 0.12s;
}

.w-search-more:hover:not(:disabled) {
  background: var(--s-alt);
}

.w-search-more:disabled {
  color: var(--s-muted);
  cursor: default;
}

/* The bar is 2px of currentColor, so it needs room of its own to be seen. */
.w-search-loader {
  margin: 18px 0;
}

@media (prefers-color-scheme: dark) {
  .w-search {
    --s-bg: #16181c;
    --s-alt: #1e2126;
    --s-sunken: #23272e;
    --s-ink: #e8eaed;
    --s-soft: #b6bcc6;
    --s-muted: #8a919c;
    --s-border: #2c313a;
    --s-border-strong: #3a414d;
    --s-accent: #f5f5f5;
  }

  .w-search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  }

  .w-search .highlight {
    background: rgba(255, 255, 255, 0.18);
  }
}