/* Renaissance Games 3.5 — unified sections, icons and reactions */
.rg-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  height: auto;
  min-height: 108px;
  border-bottom-color: #252d34;
  background: rgba(8, 11, 14, .94);
}

.header-inner {
  display: grid;
  min-height: 108px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: 54px 54px;
  column-gap: 34px;
}

.header-inner .brand {
  grid-row: 1 / 3;
  align-self: center;
}

.header-inner .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.header-inner .brand-name {
  font-size: 15px;
}

.header-inner .main-nav {
  position: static;
  display: grid;
  min-width: 0;
  grid-column: 2;
  grid-row: 1 / 3;
  grid-template-rows: 54px 54px;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.primary-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.primary-nav-links > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: #8f9aa3;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
}

.primary-nav-links > a::after,
.content-nav > a::after {
  display: none;
}

.primary-nav-links > a:hover,
.primary-nav-links > a.active {
  color: #f1f4f6;
}

.content-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border-top: 1px solid #1c242a;
  scrollbar-width: none;
}

.content-nav::-webkit-scrollbar {
  display: none;
}

.content-nav > a {
  display: inline-flex;
  min-width: max-content;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 10px;
  color: #86929b;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

.content-nav > a:hover {
  border-color: #28323a;
  background: #10161a;
  color: #e4e9ec;
}

.content-nav > a.active {
  border-color: rgba(230, 42, 70, .33);
  background: rgba(230, 42, 70, .11);
  color: #fff;
}

.content-nav > a.active .public-nav-icon {
  color: #f0445d;
}

.public-nav-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
}

.public-nav-icon .rg-icon {
  width: 17px;
  height: 17px;
}

.header-tools {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
}

.site-header .header-socials,
.site-header .nav-divider {
  display: none;
}

.portal-intro {
  min-height: 480px;
}

.portal-intro-grid {
  min-height: 480px;
  padding-top: 66px;
  padding-bottom: 66px;
}

.portal-intro h1 {
  font-size: clamp(48px, 6vw, 76px);
  letter-spacing: -.055em;
}

.portal-description,
.portal-tagline {
  max-width: 680px;
}

.news-index-head {
  padding-top: 58px;
}

.news-index-heading h1 {
  font-size: clamp(38px, 5.2vw, 60px);
}

.news-page-search {
  width: min(100%, 980px);
  grid-template-columns: minmax(240px, 1fr) minmax(150px, .38fr) minmax(150px, .38fr) auto;
}

.portal-search-category {
  display: flex;
  align-items: center;
  border-left: 1px solid #313944;
}

.portal-search-category select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #c6cdd3;
  cursor: pointer;
  padding: 0 15px;
  font-size: 13px;
}

.news-page-search + .active-search {
  width: min(100%, 980px);
}

.news-card-meta {
  gap: 10px;
}

.card-reactions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 1px;
}

.card-reactions button {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #78858f;
  cursor: pointer;
  padding: 0 5px;
}

.card-reactions button:hover {
  border-color: #35414a;
  background: #11171c;
  color: #fff;
}

.card-reactions button.selected {
  border-color: rgba(230, 42, 70, .34);
  background: rgba(230, 42, 70, .11);
  color: #f1455e;
}

.card-reactions button:disabled {
  opacity: .55;
  cursor: wait;
}

.card-reactions .rg-icon {
  width: 15px;
  height: 15px;
}

.card-reactions b {
  color: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.news-card-compact .news-card-body > p,
.article-feedback-copy p {
  font-size: 13px;
}

.feedback-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}

.feedback-icon .rg-icon {
  width: 20px;
  height: 20px;
}

.news-card-category {
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .header-inner {
    column-gap: 20px;
  }

  .content-nav > a {
    padding: 0 7px;
  }

  .content-nav > a > span:last-child {
    font-size: 11px;
  }

  .header-inner .brand-name {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 66px;
  }

  .header-inner {
    display: flex;
    min-height: 66px;
  }

  .header-inner .brand {
    margin-right: auto;
  }

  .header-inner .brand-name {
    display: inline;
  }

  .header-inner .main-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 66px);
    overflow: auto;
    grid-template-rows: auto auto;
    border-bottom: 1px solid #293139;
    background: #0a0e11;
    padding: 13px 16px 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .48);
  }

  .header-inner .main-nav.open {
    display: grid;
  }

  .primary-nav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-bottom: 12px;
  }

  .primary-nav-links > a {
    min-height: 42px;
    justify-content: center;
    border: 1px solid #222b32;
    border-radius: 7px;
    background: #0e1317;
    padding: 0 8px;
    font-size: 12px;
  }

  .content-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-top: 12px;
  }

  .content-nav > a {
    min-width: 0;
    min-height: 43px;
    border-color: #202830;
    background: #0d1216;
    padding: 0 11px;
  }

  .content-nav > a > span:last-child {
    font-size: 12px;
  }

  .portal-intro,
  .portal-intro-grid {
    min-height: auto;
  }

  .news-page-search {
    grid-template-columns: 1fr 1fr;
  }

  .news-page-search .portal-search-query {
    grid-column: 1 / -1;
  }

  .portal-search-category,
  .news-page-search .portal-search-genre {
    border-top: 1px solid #313944;
  }

  .news-page-search button {
    grid-column: 1 / -1;
    min-height: 44px;
  }
}

@media (max-width: 620px) {
  .portal-intro-grid {
    padding-top: 46px;
    padding-bottom: 44px;
  }

  .portal-intro h1 {
    font-size: clamp(44px, 14vw, 58px);
  }

  .news-index-head {
    padding-top: 38px;
  }

  .news-index-heading h1 {
    font-size: 42px;
  }

  .news-card-meta {
    align-items: center;
    flex-wrap: wrap;
  }

  .news-card-meta time {
    width: 100%;
  }

  .card-reactions {
    margin-left: auto;
  }
}
