/*
Custom Css
*/

/* Homepage portal */
.portal-page { background: #081520; color: #eaf2f5; padding: 32px 0 48px; }
.portal-shell { width: min(1760px, calc(100% - 48px)); margin: 0 auto; }
.portal-grid { display: grid; grid-template-columns: minmax(185px, 230px) minmax(0, 1fr) minmax(210px, 260px); grid-template-areas: 'news main replays'; gap: 20px; align-items: start; }
.portal-main { grid-area: main; display: grid; gap: 20px; min-width: 0; }
.portal-news { grid-area: news; }
.portal-replays { grid-area: replays; }
.portal-sidebar, .portal-panel { background: #102431; border: 1px solid #29404c; border-radius: 8px; padding: 24px; }
.portal-sidebar { position: sticky; top: 20px; }
.portal-sidebar-heading { border-bottom: 1px solid #29404c; padding-bottom: 18px; margin-bottom: 20px; }
.portal-page h1, .portal-page h2 { color: #f3f7f7; font-weight: 700 !important; }
.portal-sidebar h2 { font-size: 20px !important; margin: 7px 0 0; }
.portal-kicker { color: #6ac7d4; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.portal-hero { min-height: 390px; display: flex; align-items: end; position: relative; overflow: hidden; border: 1px solid #38505b; border-radius: 8px; background: linear-gradient(90deg, rgba(4, 18, 29, .96) 0%, rgba(5, 21, 31, .82) 48%, rgba(5, 21, 31, .18) 100%), url('/img/bg.jpg') center / cover; }
.portal-hero-content { max-width: 640px; padding: clamp(28px, 5vw, 58px); }
.portal-hero h1 { font-size: clamp(32px, 3.6vw, 56px) !important; line-height: 1.08; letter-spacing: -.035em; margin: 15px 0; }
.portal-hero p, .portal-panel p, .portal-muted, .portal-empty p { color: #b4c6cd; line-height: 1.6; }
.portal-hero p { max-width: 480px; margin-bottom: 26px; }
.portal-button, .portal-search-form button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; background: #d5b573; color: #0a1a23 !important; border: 0; border-radius: 4px; padding: 12px 18px; font-weight: 700; text-decoration: none; }
.portal-button:hover, .portal-search-form button:hover { background: #e8cc90; }
.portal-panel h2 { font-size: clamp(22px, 2vw, 28px) !important; margin: 9px 0 10px; }
.portal-feature { background: linear-gradient(120deg, #17313e, #102431); padding: 30px; }
.portal-feature p { max-width: 650px; }
.portal-text-link { display: inline-block; color: #76d0dc !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.portal-text-link:hover { color: #d5b573 !important; }
.portal-empty { padding: 8px 0 18px; }
.portal-empty-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid #36525e; border-radius: 50%; color: #d5b573; font-size: 19px; }
.portal-empty p, .portal-muted { font-size: 14px; margin: 14px 0 0; }
.portal-search { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-search p { margin: 0; font-size: 14px; }
.portal-search-form { display: flex; min-width: min(100%, 320px); }
.portal-search-form input { min-width: 0; width: 100%; background: #081a25; border: 1px solid #36525e; border-radius: 4px 0 0 4px; color: white; padding: 12px; }
.portal-search-form button { border-radius: 0 4px 4px 0; }
.portal-replay { display: block; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #29404c; text-decoration: none; }
.portal-replay-image { display: block; position: relative; overflow: hidden; border-radius: 4px; background: #07131c; aspect-ratio: 16 / 9; }
.portal-replay-image img { width: 100%; height: 100%; object-fit: cover; }
.portal-play { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(4, 18, 29, .85); color: white; font-size: 11px; }
.portal-replay-title { display: block; color: #eaf2f5; font-size: 13px; font-weight: 600; line-height: 1.4; margin-top: 9px; }
.portal-replay:hover .portal-replay-title { color: #76d0dc; }
.portal-legacy { margin-top: 24px; }
.portal-legacy > section > .container { width: 100%; max-width: none !important; border-radius: 8px; padding: 24px; }
.portal-legacy .frontpage-table { margin-top: 0 !important; }
@media (max-width: 1199px) { .portal-grid { grid-template-columns: minmax(0, 1fr) 230px; grid-template-areas: 'main replays' 'news replays'; } .portal-sidebar { position: static; } }
@media (max-width: 767px) { .portal-shell { width: calc(100% - 28px); } .portal-page { padding-top: 14px; } .portal-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'news' 'replays'; gap: 14px; } .portal-main { gap: 14px; } .portal-hero { min-height: 340px; } .portal-hero-content { padding: 26px; } .portal-search { align-items: stretch; flex-direction: column; } .portal-search-form { min-width: 0; } .portal-legacy > section > .container { padding: 12px; } }

:root {
  --wows-ink: #17202b;
  --wows-panel: rgba(255, 255, 255, 0.92);
  --wows-panel-soft: rgba(244, 248, 252, 0.9);
  --wows-line: rgba(83, 111, 143, 0.2);
  --wows-blue: #2d7fc5;
  --wows-blue-dark: #1d5f9c;
  --wows-cyan: #42b8d8;
  --wows-gold: #e2b75e;
  --wows-shadow: 0 16px 42px rgba(7, 24, 44, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--wows-ink);
  background-color: #dce7f1;
  background-image:
    linear-gradient(180deg, rgba(7, 22, 38, 0.14), rgba(219, 232, 243, 0.82) 44rem),
    url(/img/bg.jpg) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 28, 49, 0.16), rgba(220, 231, 241, 0.84) 360px),
    radial-gradient(circle at 50% 0%, rgba(66, 184, 216, 0.16), transparent 420px);
}

.container {
  max-width: min(1760px, calc(100% - 48px)) !important;
}

a {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

nav.navbar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 250, 0.96)) !important;
  border-bottom: 1px solid rgba(45, 127, 197, 0.22);
  box-shadow: 0 12px 32px rgba(7, 24, 44, 0.18) !important;
  backdrop-filter: blur(12px);
}

#worldoftanks_main_nav > .navbar,
#worldoftanks_main_nav .navbar.align-self-center {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.navbar-brand.logo {
  color: var(--wows-blue-dark) !important;
  font-size: clamp(26px, 3vw, 38px) !important;
  font-weight: 700 !important;
}

#worldoftanks_main_nav a {
  color: #24384d !important;
  font-weight: 500 !important;
}

#worldoftanks_main_nav a:hover,
#worldoftanks_main_nav a:focus {
  color: var(--wows-blue) !important;
}

.navbar-toggler {
  background: rgba(45, 127, 197, 0.08);
  border-radius: 8px;
}

body > section:first-of-type,
body > .container:first-of-type {
  margin-top: 34px;
}

body > .container:first-of-type {
  margin-bottom: 44px;
}

body > .container:first-of-type + section.py-5 {
  padding-top: 0 !important;
}

.nation-page-container {
  margin-top: 38px !important;
  margin-bottom: 30px !important;
}

.nation-page-container + section.py-5 {
  padding-top: 0 !important;
}

.tier-page-container {
  margin-top: 38px !important;
  margin-bottom: 30px !important;
  padding-top: 18px !important;
  padding-bottom: 28px !important;
}

.tier-page-container .page-breadcrumb {
  margin-bottom: 18px;
}

.tier-page-heading {
  text-align: left !important;
}

.tier-page-heading .m-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.tier-page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 56px) !important;
  font-weight: 800 !important;
}

.ship-page-container {
  margin-top: 38px !important;
  padding-top: 18px !important;
}

.ship-hero {
  padding: 18px 0 34px;
}

.ship-visual {
  padding: 14px;
}

.ship-visual-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background-position: 8% 12%;
  background-repeat: no-repeat;
  background-size: 42%;
  border-radius: 8px;
}

.ship-visual img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(7, 24, 44, 0.18));
}

.ship-info-card {
  border-color: rgba(45, 127, 197, 0.18) !important;
}

.ship-info-card .card-body {
  padding: 28px !important;
}

.ship-meta {
  margin-bottom: 10px;
  color: #637487;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}

.ship-info-card h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 2.7vw, 44px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
}

.ship-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 22px;
  color: #5a6a7d;
}

.ship-rating span {
  margin-right: 4px;
  font-weight: 500 !important;
}

.ship-link-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}

.ship-wiki-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 10px 14px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700 !important;
  background: linear-gradient(135deg, var(--wows-blue), var(--wows-cyan));
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(45, 127, 197, 0.22);
}

.ship-wiki-link:hover,
.ship-wiki-link:focus {
  color: #fff !important;
  transform: translateY(-1px);
}

.ship-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ship-stat {
  padding: 14px;
  background: rgba(235, 244, 251, 0.78);
  border: 1px solid rgba(45, 127, 197, 0.14);
  border-radius: 8px;
}

.ship-stat span {
  display: block;
  margin-bottom: 6px;
  color: #5a6a7d;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.ship-stat strong {
  display: block;
  color: #17202b;
  font-size: 24px !important;
  line-height: 1.1;
}

.nav-icon {
  width: 38px;
  height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #23384d !important;
  background: transparent;
  border: 1px solid rgba(35, 56, 77, 0.18);
  border-radius: 50%;
  box-shadow: none;
}

.nav-icon:hover,
.nav-icon:focus {
  color: var(--wows-blue-dark) !important;
  background: rgba(45, 127, 197, 0.08);
  border-color: rgba(45, 127, 197, 0.28);
  box-shadow: none;
}

.nav-icon i {
  margin: 0 !important;
  color: inherit !important;
  font-size: 18px !important;
}

.container[style*="bg2.png"],
.row[style*="bg2.png"] {
  background-color: var(--wows-panel-soft);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 242, 250, 0.9)),
    url(/img/bg2.png) !important;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  box-shadow: var(--wows-shadow);
  overflow: hidden;
}

.card,
.product-wap,
.product-wap .card {
  border: 1px solid var(--wows-line) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.card {
  background: var(--wows-panel);
  box-shadow: 0 12px 30px rgba(7, 24, 44, 0.11);
}

.card-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.98));
}

.product-wap {
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 24, 44, 0.12) !important;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-wap .card-body {
  border-top: 3px solid rgba(45, 127, 197, 0.24);
}

.product-wap a.h2,
.product-wap a.h3 {
  color: #173653 !important;
  font-weight: 700 !important;
}

.product-wap:hover {
  border-color: rgba(45, 127, 197, 0.34) !important;
  box-shadow: 0 18px 38px rgba(7, 24, 44, 0.18) !important;
  transform: translateY(-3px);
}

.product-wap .card-img,
.card-img,
.img-fluid {
  transition: transform 220ms ease, filter 220ms ease;
}

.product-wap:hover .card-img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

.card.product-wap .card .product-overlay {
  background: linear-gradient(180deg, rgba(7, 24, 44, 0.02), rgba(7, 24, 44, 0.18));
  pointer-events: none;
}

.card.product-wap .card .product-overlay ul {
  display: none !important;
}

.btn-success,
.input-group-text.bg-success {
  background: linear-gradient(135deg, var(--wows-blue), var(--wows-cyan)) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 20px rgba(45, 127, 197, 0.26);
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, var(--wows-blue-dark), var(--wows-blue)) !important;
  box-shadow: 0 10px 24px rgba(45, 127, 197, 0.34);
  transform: translateY(-1px);
}

.text-success {
  color: var(--wows-blue) !important;
}

.bg-success {
  background: linear-gradient(135deg, var(--wows-blue-dark), var(--wows-cyan)) !important;
}

.text-warning {
  color: var(--wows-gold) !important;
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3 {
  color: #14263a;
  letter-spacing: 0;
}

h1,
.h1 {
  font-weight: 700 !important;
}

h4 {
  font-weight: 600 !important;
}

#Holder {
  border: 1px solid var(--wows-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 24, 44, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#Holder table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

#Holder th {
  padding: 12px 8px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

#Holder td {
  padding: 10px 8px !important;
  background: rgba(247, 250, 253, 0.92);
  border-top: 1px solid rgba(83, 111, 143, 0.12);
}

.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 24px;
  padding: 10px 12px;
  color: #5a6a7d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(83, 111, 143, 0.14);
  border-radius: 8px;
}

.page-breadcrumb a,
.page-breadcrumb span {
  font-size: 15px !important;
  font-weight: 500 !important;
}

.page-breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: rgba(90, 106, 125, 0.58);
}

.nation-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 4px 0 32px;
}

.nation-flag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 190px;
  min-height: 140px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(83, 111, 143, 0.14);
  border-radius: 8px;
}

.nation-flag img {
  max-width: 152px;
  height: auto;
}

.nation-copy {
  min-width: 0;
}

.nation-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 58px) !important;
  line-height: 1 !important;
}

.tier-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tier-picker span {
  margin-right: 4px;
  color: #5a6a7d;
  font-size: 18px !important;
  font-weight: 600 !important;
}

.tier-picker .topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  color: #173653 !important;
  text-decoration: none;
  font-size: 18px !important;
  font-weight: 700 !important;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(45, 127, 197, 0.22);
  border-radius: 8px;
}

.tier-picker .topic:hover,
.tier-picker .topic:focus {
  color: #fff !important;
  background: linear-gradient(135deg, var(--wows-blue), var(--wows-cyan));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(45, 127, 197, 0.22);
  transform: translateY(-1px);
}

.form-control,
.input-group-text {
  border-color: rgba(83, 111, 143, 0.24) !important;
  border-radius: 8px;
}

.form-control:focus {
  border-color: var(--wows-blue) !important;
  box-shadow: 0 0 0 0.2rem rgba(45, 127, 197, 0.18) !important;
}

.modal-content {
  border-radius: 8px !important;
  box-shadow: 0 24px 70px rgba(7, 24, 44, 0.22);
}

#tempaltemo_footer {
  background: linear-gradient(180deg, #17202b, #0f1721) !important;
}

#tempaltemo_footer .bg-black,
.bg-black {
  background-color: #0b1119 !important;
}

#tempaltemo_footer a:hover {
  color: var(--wows-cyan) !important;
}

#tempaltemo_footer ul.footer-icons li {
  border-radius: 8px !important;
}

.slick-dots li button:before {
  color: var(--wows-blue) !important;
}

@media (max-width: 767.98px) {
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body, ul, li, p, a, label, input, div {
    font-size: 15px !important;
  }

  body {
    background-attachment: scroll !important;
  }

  .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar > .container {
    gap: 10px;
  }

  .navbar-brand.logo {
    max-width: calc(100vw - 86px);
    font-size: 24px !important;
    line-height: 1.12 !important;
    white-space: normal;
  }

  #worldoftanks_main_nav {
    padding-top: 12px;
  }

  #worldoftanks_main_nav .navbar-nav {
    align-items: stretch;
    gap: 4px;
  }

  #worldoftanks_main_nav .nav-link {
    padding: 10px 12px !important;
    background: rgba(45, 127, 197, 0.07);
    border-radius: 8px;
  }

  #worldoftanks_main_nav .navbar {
    width: 100%;
    padding: 0;
  }

  #worldoftanks_main_nav form {
    width: 100%;
    margin-top: 8px;
  }

  body > section:first-of-type,
  body > .container:first-of-type {
    margin-top: 18px;
  }

  body > .container:first-of-type {
    margin-bottom: 24px;
  }

  .nation-page-container {
    margin-top: 20px !important;
    margin-bottom: 18px !important;
  }

  .tier-page-container {
    margin-top: 20px !important;
    margin-bottom: 18px !important;
    padding-top: 12px !important;
    padding-bottom: 18px !important;
  }

  .tier-page-heading {
    padding-top: 4px !important;
    padding-bottom: 14px !important;
  }

  .tier-page-heading h1 {
    font-size: 30px !important;
  }

  .ship-page-container {
    margin-top: 20px !important;
    padding-top: 12px !important;
  }

  .ship-hero {
    padding: 6px 0 20px;
  }

  .ship-visual {
    padding: 4px 0 12px;
  }

  .ship-visual-inner {
    min-height: 220px;
    background-size: 48%;
  }

  .ship-visual img {
    max-height: 260px;
  }

  .ship-info-card .card-body {
    padding: 18px !important;
  }

  .ship-meta {
    font-size: 13px !important;
  }

  .ship-info-card h1 {
    font-size: 26px !important;
  }

  .ship-stat-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ship-stat {
    padding: 12px;
  }

  .ship-stat strong {
    font-size: 22px !important;
  }

  .container[style*="bg2.png"],
  .row[style*="bg2.png"] {
    border-radius: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .frontpage-table {
    margin-top: 0 !important;
  }

  .card-body {
    padding: 14px !important;
  }

  .page-breadcrumb {
    margin: 0 0 16px;
  }

  .page-breadcrumb a,
  .page-breadcrumb span {
    font-size: 14px !important;
  }

  .nation-hero {
    display: block;
    padding-bottom: 18px;
  }

  .nation-flag {
    width: 150px;
    min-height: 104px;
    margin-bottom: 14px;
  }

  .nation-flag img {
    max-width: 126px;
  }

  .nation-copy h1 {
    margin-bottom: 14px;
    font-size: 32px !important;
  }

  .tier-picker {
    gap: 7px;
  }

  .tier-picker span {
    flex: 0 0 100%;
    font-size: 16px !important;
  }

  .tier-picker .topic {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 16px !important;
  }

  h1,
  .h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  h3,
  h4,
  .h3 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  #Holder {
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .product-wap:hover {
    transform: none;
  }

  .product-wap {
    margin-bottom: 10px !important;
  }

  .product-wap .card-img {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    background: #fff;
  }

  .product-wap .card-body {
    min-height: 58px;
    padding: 12px 14px !important;
  }

  .slick-slide {
    padding-left: 4px;
    padding-right: 4px;
  }

  .slick-dots {
    bottom: -28px;
  }

  #Holder th,
  #Holder td {
    min-width: 96px;
    padding: 9px 6px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .navbar-brand.logo {
    font-size: 21px !important;
  }

  #Holder th,
  #Holder td {
    min-width: 88px;
    font-size: 12px !important;
  }
}

/* Homepage: WN8, fleets and the shared lower carousels */
.portal-legacy { margin-top: 20px; }
.portal-legacy > section { padding: 0; }
.portal-legacy > section > .portal-legacy-container {
  width: 100%;
  max-width: none !important;
  padding: 0;
  background: transparent;
}
.portal-legacy .frontpage-table { padding: 0; }
.portal-legacy .frontpage-table > .card {
  background: #102431;
  border: 1px solid #29404c !important;
  box-shadow: none;
}
.portal-legacy .frontpage-table > .card > .card-body {
  padding: 30px;
  background: transparent;
}
.portal-legacy .frontpage-table h3 { margin: 9px 0 22px; }
.portal-legacy .frontpage-table h3 a { color: #f3f7f7; text-decoration: none; }
.portal-legacy .frontpage-table h3 a:hover { color: #76d0dc; }
.portal-legacy #Holder {
  overflow-x: auto;
  border: 1px solid #29404c;
  background: #0a1c27;
  box-shadow: none;
}
.portal-legacy #Holder table { min-width: 760px; }
.portal-legacy #Holder th { color: #fff; border: 0; }
.portal-legacy #Holder td {
  color: #d8e5e8;
  background: #102a37;
  border-color: #29404c;
}
.portal-section-heading { margin: 34px 0 14px; scroll-margin-top: 24px; }
.portal-section-heading h4, .portal-footer-content h4 {
  color: #f3f7f7;
  font-size: 24px !important;
  margin: 8px 0 0;
}
.portal-footer-content { background: #081520; padding: 0 0 58px !important; }
.portal-footer-content > .container[style*="bg2.png"] {
  width: min(1760px, calc(100% - 48px));
  max-width: none !important;
  padding: 30px;
  background: #102431 !important;
  border: 1px solid #29404c;
  border-radius: 8px;
  box-shadow: none;
  overflow: visible;
}
.portal-footer-content .row { margin-left: 0; margin-right: 0; }
.portal-footer-content .row:not(:first-child) { margin-top: 42px; }
.portal-legacy .product-wap,
.portal-footer-content .product-wap {
  background: #142e3b;
  border: 1px solid #294954 !important;
  box-shadow: none !important;
}
.portal-legacy .product-wap .card,
.portal-footer-content .product-wap .card {
  background: #0a1c27;
  border: 0 !important;
  box-shadow: none;
}
.portal-legacy .product-wap .card-body,
.portal-footer-content .product-wap .card-body {
  min-height: 65px;
  padding: 16px;
  background: #142e3b;
  border-top: 1px solid #294954;
}
.portal-legacy .product-wap a.h3,
.portal-footer-content .product-wap a.h3 {
  color: #ecf4f5 !important;
  font-size: 16px !important;
  line-height: 1.4;
}
.portal-legacy .product-wap:hover,
.portal-footer-content .product-wap:hover { border-color: #6ac7d4 !important; }
.portal-legacy .product-wap a.h3:hover,
.portal-footer-content .product-wap a.h3:hover { color: #76d0dc !important; }
.portal-legacy .slick-dots li button:before,
.portal-footer-content .slick-dots li button:before { color: #81a5af; opacity: .5; }
.portal-legacy .slick-dots li.slick-active button:before,
.portal-footer-content .slick-dots li.slick-active button:before { color: #6ac7d4; opacity: 1; }
.portal-legacy #carousel-related-product3 { margin-bottom: 40px; }
.portal-footer-content #carousel-related-product2 { margin-bottom: 30px; }
@media (max-width: 767px) {
  .portal-legacy .frontpage-table > .card > .card-body { padding: 20px 16px; }
  .portal-footer-content > .container[style*="bg2.png"] { width: calc(100% - 28px); padding: 20px 16px !important; }
  .portal-section-heading h4, .portal-footer-content h4 { font-size: 21px !important; }
}

/* Shared portal design for ship, fleet, search and information pages. */
body {
  color: #d9e5e8;
  background: #081520 !important;
}
body::before { display: none; }
body > nav.navbar {
  background: #102431 !important;
  border-bottom: 1px solid #29404c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2) !important;
}
body > nav.navbar .navbar-brand.logo { color: #f3f7f7 !important; }
#worldoftanks_main_nav a { color: #d9e5e8 !important; }
#worldoftanks_main_nav a:hover, #worldoftanks_main_nav a:focus { color: #76d0dc !important; }
body > nav.navbar .nav-icon { color: #d9e5e8 !important; border-color: #41606c; }
body > nav.navbar .navbar-toggler { background: #d5b573; }

.container[style*="bg2.png"], .row[style*="bg2.png"] {
  color: #d9e5e8;
  background: #102431 !important;
  border: 1px solid #29404c;
  box-shadow: none;
}
.container[style*="bg2.png"] h1, .container[style*="bg2.png"] h2,
.container[style*="bg2.png"] h3, .container[style*="bg2.png"] h4,
.row[style*="bg2.png"] h1, .row[style*="bg2.png"] h2,
.row[style*="bg2.png"] h3, .row[style*="bg2.png"] h4 { color: #f3f7f7; }
.container[style*="bg2.png"] .card,
.row[style*="bg2.png"] .card,
body > section.bg-success .card {
  background: #142e3b;
  border-color: #294954 !important;
  box-shadow: none;
}
.container[style*="bg2.png"] .card-body,
.row[style*="bg2.png"] .card-body,
body > section.bg-success .card-body { color: #d9e5e8; background: #142e3b; }
.container[style*="bg2.png"] .product-wap a.h2,
.container[style*="bg2.png"] .product-wap a.h3,
.row[style*="bg2.png"] .product-wap a.h2,
.row[style*="bg2.png"] .product-wap a.h3,
body > section.bg-success .product-wap a.h3 { color: #ecf4f5 !important; }
.container[style*="bg2.png"] .product-wap .card-body,
.row[style*="bg2.png"] .product-wap .card-body,
body > section.bg-success .product-wap .card-body { border-top: 1px solid #294954; }
.container[style*="bg2.png"] .product-wap:hover,
.row[style*="bg2.png"] .product-wap:hover,
body > section.bg-success .product-wap:hover { border-color: #6ac7d4 !important; }

.page-breadcrumb { color: #b4c6cd; background: #0a1c27; border-color: #29404c; }
.page-breadcrumb a { color: #76d0dc; }
.page-breadcrumb a::after { color: #68838c; }
.nation-flag { background: #0a1c27; border-color: #29404c; }
.tier-picker span, .ship-meta, .ship-rating { color: #b4c6cd; }
.tier-picker .topic { color: #eaf2f5 !important; background: #183744; border-color: #36525e; }
.tier-picker .topic:hover, .tier-picker .topic:focus { color: #081520 !important; background: #d5b573; }
.ship-stat { background: #0a1c27; border-color: #294954; }
.ship-stat span { color: #b4c6cd; }
.ship-stat strong { color: #f3f7f7; }
.ship-wiki-link { color: #081520 !important; background: #d5b573; box-shadow: none; }
.ship-wiki-link:hover, .ship-wiki-link:focus { color: #081520 !important; background: #e8cc90; }
.ship-page-container #Holder { overflow-x: auto; background: #0a1c27; border-color: #29404c; box-shadow: none; }
.ship-page-container #Holder table { min-width: 760px; }
.ship-page-container #Holder th { color: #fff; }
.ship-page-container #Holder td { color: #d9e5e8; background: #102a37; border-color: #29404c; }

body > section.bg-success, body > section.bg-light { background: #081520 !important; color: #d9e5e8; }
body > section.bg-success h1, body > section.bg-light h1 { color: #f3f7f7; }
body > section.bg-success > .container, body > section.bg-light > .container {
  background: #102431;
  border: 1px solid #29404c;
  border-radius: 8px;
  padding: 24px;
}
body > section.bg-success img { max-width: 100%; height: auto; }
#tempaltemo_footer { background: #0b1c27 !important; border-top: 1px solid #29404c; }
#tempaltemo_footer .logo { color: #d5b573 !important; }

@media (max-width: 767px) {
  body > section.bg-success > .container, body > section.bg-light > .container { width: calc(100% - 28px) !important; padding: 16px !important; }
  .nation-page-container, .tier-page-container, .ship-page-container { width: calc(100% - 28px) !important; }
}

/* Nation flags are smaller than their cards, with a light backdrop for their edges. */
#carousel-related-product3 .product-wap > .card {
  background: #d2dce0;
}
#carousel-related-product3 .product-wap > .card > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 16px;
}
#carousel-related-product3 .product-wap > .card > a img {
  width: auto;
  max-width: 65%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.site-header-actions { display: flex; align-items: center; gap: 12px; order: 2; margin-left: 18px; }
nav.site-primary-nav { position: relative; z-index: 1030 !important; isolation: isolate; overflow: visible; }
.portal-sidebar { z-index: 0; }
body > nav.navbar #worldoftanks_main_nav { order: 1; }
.site-language-menu { position: relative; z-index: 1050; }
.site-language-menu summary {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px;
  color: #eaf2f5; background: #183440; border: 1px solid #36525e;
  border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none;
}
.site-language-menu summary::-webkit-details-marker { display: none; }
.site-language-menu summary:hover, .site-language-menu[open] summary { border-color: #6ac7d4; }
.site-language-menu img { display: block; width: 24px; height: 18px; object-fit: cover; border-radius: 2px; }
.site-language-list {
  position: absolute; right: 0; top: calc(100% + 8px); width: 205px; max-height: min(70vh, 510px);
  overflow-y: auto; padding: 6px; background: #102431; border: 1px solid #36525e;
  border-radius: 8px; box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
}
.site-language-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; color: #eaf2f5; font-size: 14px; text-decoration: none; }
.site-language-list a:hover, .site-language-list a:focus, .site-language-list a[aria-current="page"] { color: #fff; background: #214451; }
@media (max-width: 991.98px) {
  .site-header-actions { order: 1; margin-left: auto; }
  body > nav.navbar #worldoftanks_main_nav { order: 2; flex-basis: 100%; }
}

/* News pages and the homepage news feed */
.portal-news-list a { display: block; padding: 0 0 15px; margin-bottom: 15px; border-bottom: 1px solid #29404c; color: #edf5f7; text-decoration: none; }
.portal-news-list a:hover { color: #76d0dc; }
.portal-news-list time, .news-card time, .news-article-shell time { display: block; margin-bottom: 6px; color: #9eb4bc; font-size: 12px; }
.portal-news-list span { font-size: 14px; font-weight: 600; line-height: 1.4; }
.portal-news-image { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 5px; margin-bottom: 20px; }
.portal-news-heading { color: #f3f7f7; text-decoration: none; }
.portal-news-heading:hover { color: #76d0dc; }
.news-page { background: #081520; min-height: 50vh; padding: 48px 24px 70px; color: #d9e5e8; }
.news-shell { max-width: 1500px; margin: auto; }
.news-shell.news-layout { max-width: 1430px; }
.news-layout .news-main { min-width: 0; }
.news-article-shell { max-width: 900px; margin: auto; background: #102431; border: 1px solid #29404c; border-radius: 8px; padding: clamp(22px, 4vw, 48px); }
.news-page h1, .news-page h2 { color: #f3f7f7; }
.news-page h1 { margin: 12px 0 28px; font-size: clamp(30px, 4vw, 48px) !important; }
.news-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.news-card { background: #102431; border: 1px solid #29404c; border-radius: 8px; overflow: hidden; }
.news-card a { color: #d9e5e8; text-decoration: none; }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 20px; }
.news-card h2 { font-size: 20px !important; line-height: 1.3; }
.news-card p, .news-article-shell p, .news-empty { color: #b4c6cd; line-height: 1.7; }
.news-article-shell article { margin-top: 28px; }
.news-article-image { display: block; width: 100%; border-radius: 6px; margin: 24px 0; }
.news-image-caption { color: #9eb4bc; font-size: 12px; margin-top: -14px; }
.news-article-shell .news-lead { color: #f3f7f7; font-size: 20px; }
.news-sources { border-top: 1px solid #29404c; margin-top: 35px; padding-top: 20px; }
.news-sources h2 { font-size: 20px !important; }
.news-sources a { display: block; color: #76d0dc; margin: 8px 0; }
.news-related { padding: 0 24px 40px; }
.news-related-inner { max-width: 1760px; margin: auto; padding: 28px; border: 1px solid #29404c; border-radius: 8px; background: #102431; }
.news-related h2 { color: #f3f7f7; font-size: 24px !important; margin: 8px 0 18px; }
.news-related a { display: block; border-top: 1px solid #29404c; padding: 15px 0; color: #eaf2f5; text-decoration: none; }
.news-related a:hover { color: #76d0dc; }
.news-related a span { display: block; color: #b4c6cd; margin-top: 4px; }

/* Friendly, dismissible ad blocker notice. */
.adblock-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid #385966; border-radius: 14px; background: #102431; color: #d9e5e8; box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.adblock-dialog::backdrop { background: rgba(2, 11, 17, .78); }
.adblock-notice-content { padding: 24px 32px 32px; text-align: center; }
.adblock-illustration { margin: 0 auto 8px; }
.adblock-illustration svg { max-width: 100%; height: auto; }
.adblock-notice-content h2 { margin: 0 0 14px; color: #f3f7f7; font-size: 25px; line-height: 1.2; }
.adblock-notice-content p { margin: 0 0 14px; color: #b4c6cd; line-height: 1.55; }
.adblock-continue { margin-top: 8px; padding: 12px 24px; border: 0; border-radius: 5px; background: #d4ad6c; color: #102431; font-weight: 700; cursor: pointer; }
.adblock-continue:hover, .adblock-continue:focus-visible { background: #ead092; }
@media (max-width: 480px) { .adblock-notice-content { padding: 20px; } .adblock-illustration svg { width: 130px; } }

/* Wiki-specific portal adjustments */
.wiki-home .portal-hero { min-height: 300px; }
.wiki-home .portal-feature { padding: 24px 30px; }
.wiki-home .portal-feature .portal-news-image { max-height: 220px; }
.wiki-home .portal-legacy > section > .container { margin-top: 24px; }
.wiki-page-content { background: #081520; }

.wiki-spec-section { background: #081520; padding: 0 24px 45px; }
.wiki-spec-container { width: min(1500px, 100%); margin: auto; padding: clamp(20px, 3vw, 34px); border: 1px solid #29404c; border-radius: 8px; background: #102431; color: #d9e5e8; }
.wiki-spec-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.wiki-spec-header h2, .wiki-module-heading { color: #f3f7f7; font-size: clamp(24px, 2.2vw, 31px) !important; margin: 7px 0 0; }
.wiki-spec-header a { color: #76d0dc; font-size: 13px; white-space: nowrap; }
.wiki-spec-subtitle, .wiki-spec-empty { color: #a9c0c9; margin: 0 0 20px; }
.wiki-spec-grid, .wiki-module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: start; }
.wiki-spec-card, .wiki-module-card { background: #142e3b; border: 1px solid #294954; border-radius: 7px; overflow: hidden; }
.wiki-spec-card h3 { font-size: 18px !important; color: #f3f7f7; margin: 0; padding: 16px 18px; border-bottom: 1px solid #294954; }
.wiki-spec-card dl, .wiki-module-card dl { margin: 0; padding: 0 18px; }
.wiki-spec-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #294954; }
.wiki-spec-row:last-child { border: 0; }
.wiki-spec-row dt { color: #aec1c8; font-weight: 400; overflow-wrap: anywhere; }
.wiki-spec-row dd { margin: 0; text-align: right; color: #f3f7f7; font-weight: 600; overflow-wrap: anywhere; }
.wiki-module-heading { margin: 34px 0 16px; }
.wiki-module-card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #f3f7f7; cursor: pointer; list-style: none; }
.wiki-module-card summary::-webkit-details-marker { display: none; }
.wiki-module-card summary small { display: block; margin-top: 4px; color: #9bb5bf; }
.wiki-module-card[open] summary { border-bottom: 1px solid #294954; }
@media (max-width: 600px) { .wiki-spec-section { padding: 0 14px 30px; } .wiki-spec-header { align-items: start; flex-direction: column; } }

/* Keep wiki content and its news and replay sidebars together. */
.wiki-layout { background: #081520; padding: 32px 24px 48px; }
.wiki-layout-grid { max-width: 1760px; margin: 0 auto; }
.wiki-layout-main { min-width: 0; }
.wiki-layout-main .nation-page-container, .wiki-layout-main .tier-page-container, .wiki-layout-main .ship-page-container { width: 100% !important; max-width: none; margin-top: 0 !important; }
.wiki-layout-main .wiki-spec-section { padding: 0 0 24px; }
.wiki-layout-main > section.bg-success, .wiki-layout-main > section.bg-light { background: #081520 !important; color: #d9e5e8; }
.wiki-layout-main > section.bg-success h1, .wiki-layout-main > section.bg-light h1 { color: #f3f7f7; }
.wiki-layout-main > section.bg-success > .container, .wiki-layout-main > section.bg-light > .container { background: #102431; border: 1px solid #29404c; border-radius: 8px; padding: 24px; }
@media (min-width: 1024px) and (max-width: 1199px) { .wiki-layout-grid { grid-template-columns: minmax(170px, 185px) minmax(0, 1fr) minmax(185px, 210px); grid-template-areas: 'news main replays'; } }
@media (max-width: 767px) { .wiki-layout { padding: 14px 14px 32px; } }

/* Align the outer panels across the complete wiki content column. */
.wiki-layout-main > .container,
.wiki-layout-main > section > .container,
.wiki-layout-main .wiki-spec-container { width: 100% !important; max-width: 100% !important; margin-left: 0; margin-right: 0; }

/* Module artwork supplied by the Wargaming encyclopedia. */
.wiki-module-card summary { justify-content: flex-start; }
.wiki-module-icon { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; padding: 7px; border: 1px solid #365763; border-radius: 8px; background: #0c202c; color: #80bec8; font-size: 24px; }
.wiki-module-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wiki-module-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wiki-module-toggle { flex: none; color: #8bc9d1; font-size: 21px; }
.wiki-module-card[open] .wiki-module-toggle { transform: rotate(45deg); }

/* Ships unlocked from the current ship. */
.wiki-next-section { padding: 0 0 24px; }
.wiki-next-container { width: 100%; padding: clamp(20px, 3vw, 34px); border: 1px solid #29404c; border-radius: 8px; background: #102431; }
.wiki-next-container h2 { margin: 7px 0 20px; color: #f3f7f7; font-size: clamp(24px, 2.2vw, 31px) !important; }
.wiki-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.wiki-next-card { display: flex; align-items: center; gap: 16px; padding: 14px; color: #f3f7f7; text-decoration: none; background: #142e3b; border: 1px solid #294954; border-radius: 7px; }
.wiki-next-card:hover, .wiki-next-card:focus-visible { color: #f3f7f7; border-color: #6ac7d4; background: #193744; }
.wiki-next-image { flex: 0 0 110px; width: 110px; height: 75px; display: grid; place-items: center; background: #0c202c; border-radius: 5px; overflow: hidden; }
.wiki-next-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wiki-next-copy { min-width: 0; flex: 1; }
.wiki-next-copy small, .wiki-next-copy strong, .wiki-next-copy > span { display: block; }
.wiki-next-copy small, .wiki-next-copy > span { color: #a9c0c9; font-size: 13px; }
.wiki-next-copy strong { margin: 3px 0; color: #f3f7f7; font-size: 18px; overflow-wrap: anywhere; }
.wiki-next-arrow { color: #76d0dc; font-size: 22px; }
@media (max-width: 420px) { .wiki-next-image { flex-basis: 80px; width: 80px; height: 60px; } }

/* Replays featuring the current ship. */
.wiki-ship-replays { padding: 0 0 24px; }
.wiki-ship-replays-inner { width: 100%; padding: clamp(20px, 3vw, 34px); border: 1px solid #29404c; border-radius: 8px; background: #102431; }
.wiki-ship-replays-inner h2 { margin: 7px 0 20px; color: #f3f7f7; font-size: clamp(24px, 2.2vw, 31px) !important; }
.wiki-ship-replays-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.wiki-ship-replay { display: block; overflow: hidden; border: 1px solid #294954; border-radius: 7px; background: #142e3b; color: #f3f7f7; text-decoration: none; }
.wiki-ship-replay:hover, .wiki-ship-replay:focus-visible { border-color: #6ac7d4; color: #76d0dc; }
.wiki-ship-replay-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0c202c; }
.wiki-ship-replay-image img { width: 100%; height: 100%; object-fit: cover; }
.wiki-ship-replay strong { display: block; padding: 14px; line-height: 1.4; font-size: 14px; overflow-wrap: anywhere; }

/* Readable text on the dark ship overview. */
.ship-info-card .ship-overview p { color: #d9e5e8; line-height: 1.65; }
.ship-info-card .ship-meta, .ship-info-card .ship-rating, .ship-info-card .ship-stat span { color: #c7d8dd; }

/* Superships have their own label after tier 10. */
.tier-picker .tier-superships { width: auto; min-width: 0; padding: 0 14px; white-space: nowrap; }

/* Ship type overview. */
.wiki-type-page { padding: clamp(20px, 3vw, 34px); border: 1px solid #29404c; border-radius: 8px; background: #102431; color: #d9e5e8; }
.wiki-type-header { margin-bottom: 24px; }
.wiki-type-header .page-breadcrumb { margin-bottom: 24px; }
.wiki-type-header h1 { margin: 8px 0 0; color: #f3f7f7 !important; font-size: clamp(28px, 2.7vw, 40px) !important; font-weight: 700 !important; }
.wiki-type-grid > div { display: flex; }
.wiki-type-page .product-wap { width: 100%; border: 1px solid #294954 !important; border-radius: 8px !important; background: #142e3b !important; box-shadow: none; }
.wiki-type-page .product-wap > .card { border: 0 !important; border-radius: 0 !important; background: #0c202c !important; box-shadow: none; }
.wiki-type-page .wiki-type-image { position: relative; height: 150px; background-color: #0c202c; background-repeat: no-repeat; background-position: 12px 12px; background-size: 64px auto; }
.wiki-type-page .wiki-type-image > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wiki-type-page .product-wap .card-body { padding: 15px; border-top: 1px solid #294954; background: #142e3b !important; }
.wiki-type-page .product-wap .card-body a { color: #f3f7f7 !important; font-size: 17px !important; line-height: 1.3; overflow-wrap: anywhere; }
.wiki-type-page .product-wap:hover { border-color: #6ac7d4 !important; }
.wiki-type-page .product-wap .card-body a:hover { color: #76d0dc !important; }
.wiki-type-meta { margin-top: 6px; color: #b4c6cd; font-size: 14px; }
.wiki-layout .portal-sidebar h2 { color: #f3f7f7 !important; }

/* Related ships: use the dark card palette, keeping flags subtle. */
.wiki-layout-main #carousel-related-product3 .product-wap > .card { background: #263f49 !important; }
.wiki-layout-main #carousel-related-product3 .product-wap > .card > div[style*="/img/flags/"] { background-color: #263f49; background-position: 12px 10px; background-size: 68px auto !important; }

/* Compatible upgrades grouped by slot. */
.wiki-upgrades-heading { margin: 38px 0 18px; color: #f3f7f7; font-size: clamp(24px, 2.2vw, 31px) !important; }
.wiki-upgrade-slots { display: grid; gap: 12px; }
.wiki-upgrade-slot { display: grid; grid-template-columns: 100px minmax(0, 1fr); border: 1px solid #294954; border-radius: 8px; background: #142e3b; overflow: hidden; }
.wiki-upgrade-slot h3 { display: flex; align-items: center; justify-content: center; margin: 0; padding: 16px 10px; color: #d6e7ea; background: #193746; border-right: 1px solid #294954; font-size: 16px !important; }
.wiki-upgrade-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; padding: 12px; }
.wiki-upgrade-item { display: flex; align-items: center; flex-direction: column; gap: 7px; padding: 7px; text-align: center; color: #dce8eb; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.wiki-upgrade-icon { display: grid; place-items: center; width: 68px; height: 68px; padding: 5px; border: 1px solid #365763; border-radius: 7px; background: #0c202c; color: #80bec8; font-size: 24px; }
.wiki-upgrade-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 520px) { .wiki-upgrade-slot { grid-template-columns: 1fr; } .wiki-upgrade-slot h3 { justify-content: flex-start; padding: 10px 14px; border-right: 0; border-bottom: 1px solid #294954; } .wiki-upgrade-list { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); } }

/* Encyclopedia introduction on the wiki homepage. */
.wiki-introduction { padding: clamp(24px, 3vw, 38px); }
.wiki-introduction h2 { margin: 8px 0 18px; }
.wiki-introduction h3 { margin: 24px 0 9px; color: #eaf2f5; font-size: 19px !important; font-weight: 700 !important; }
.wiki-introduction p { max-width: 72ch; margin: 0 0 12px; color: #c3d3d9; line-height: 1.7; }
.wiki-introduction .portal-text-link { margin-top: 10px; }
.wiki-introduction-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 26px; }
.wiki-introduction-links a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #365965; border-radius: 5px; background: #17333f; color: #d9eef0; font-size: 14px; font-weight: 600; text-decoration: none; }
.wiki-introduction-links a span { color: #76d0dc; }
.wiki-introduction-links a:hover, .wiki-introduction-links a:focus-visible { border-color: #6ac7d4; color: #fff; background: #204552; }

/* Keep long content inside its column on every screen size. */
.wiki-layout-main, .wiki-home .portal-main { grid-template-columns: minmax(0, 1fr); }
.wiki-layout-main > *, .wiki-home .portal-main > * { min-width: 0; max-width: 100%; }

@media (max-width: 767px) {
  body > nav.site-primary-nav .navbar-brand.logo { max-width: none; margin-right: 0; font-size: clamp(16px, 4.6vw, 20px) !important; white-space: nowrap; }
  .site-header-actions { flex-shrink: 0; gap: 6px; margin-left: auto; }
  .site-language-menu summary { gap: 5px; padding: 7px; }
  .site-language-list { width: min(205px, calc(100vw - 28px)); }
  body > nav.site-primary-nav .navbar-toggler { padding: 5px 8px; }
  .wiki-layout-main .wiki-type-grid > .col-md-2,
  .wiki-layout-main .tier-page-container .row > .col-md-3 { flex: 0 0 50%; max-width: 50%; }
  .wiki-type-page .wiki-type-image { height: 130px; background-size: 52px auto; }
  .wiki-type-page .product-wap .card-body { padding: 12px !important; }
  .wiki-type-page .product-wap .card-body a { font-size: 15px !important; }
  .wiki-type-meta { font-size: 13px !important; }
  .tier-page-container .product-wap .card-body > ul { flex-direction: column; gap: 4px; font-size: 13px !important; }
  .tier-page-container .product-wap .card-body > a { font-size: 17px !important; overflow-wrap: anywhere; }
  .wiki-layout-main .product-wap .card-img { background: transparent !important; }
  .ship-visual-inner { min-height: 180px; }
  .ship-visual img { max-height: 220px; }
  .ship-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ship-stat strong { overflow-wrap: anywhere; }
  .portal-replays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portal-replays > .portal-sidebar-heading, .portal-replays > .portal-text-link, .portal-replays > .portal-muted { grid-column: 1 / -1; }
  .portal-replays .portal-sidebar-heading { margin-bottom: 0; }
  .portal-replays .portal-replay { min-width: 0; margin: 0; padding-bottom: 12px; }
  .wiki-ship-replays-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-ship-replay strong { padding: 10px; font-size: 13px; }
  .wiki-upgrade-item { font-size: 12px !important; }
  .portal-search-form input, #worldoftanks_main_nav input, #worldoftanks_search input { font-size: 16px !important; }
  #tempaltemo_footer .row { margin-left: 0; margin-right: 0; }
  #tempaltemo_footer li, #tempaltemo_footer a, #tempaltemo_footer p { overflow-wrap: anywhere; word-break: break-word; }
}

@media (max-width: 359px) {
  body > nav.site-primary-nav .navbar-brand.logo { font-size: 14px !important; }
  .site-language-menu summary { padding: 6px; font-size: 11px; }
  .site-language-menu img { width: 20px; height: 15px; }
  body > nav.site-primary-nav .navbar-toggler { padding: 4px 6px; }
  .wiki-type-grid > .col-md-2, .tier-page-container .row > .col-md-3 { padding-left: 8px; padding-right: 8px; }
  .wiki-type-page .wiki-type-image { height: 105px; }
  .ship-stat-grid { grid-template-columns: 1fr; }
}

/* Wiki header, matching the replay portal. */
.wiki-classic-header { position: relative; z-index: 1030; width: 100%; color: #fff; background: #090f15; font-family: 'Arial Narrow', Arial, sans-serif; }
.wiki-classic-hero { position: relative; height: clamp(120px, 9vw, 170px); background: linear-gradient(90deg, rgba(4,5,7,.32), rgba(4,5,7,.02) 54%, rgba(4,5,7,.26)), url('/assets/img/wiki-header-fleet.webp') center 40% / cover; }
.wiki-classic-brand { position: absolute; left: max(42px, calc((100% - 1600px) / 2 + 42px)); bottom: 24px; color: #fff !important; text-decoration: none; text-transform: uppercase; text-shadow: 2px 2px 3px #000; line-height: .82; }
.wiki-classic-brand b { display: block; font-family: Impact, 'Arial Narrow', sans-serif; font-size: 49px; font-weight: 400; letter-spacing: 1px; }
.wiki-classic-brand > span { display: block; margin-top: 9px; font-size: 14px; font-weight: 700; letter-spacing: 4px; }
.wiki-classic-actions { position: absolute; top: 14px; right: max(18px, calc((100% - 1600px) / 2 + 18px)); display: flex; align-items: center; gap: 10px; }
.wiki-classic-search { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid #516976; border-radius: 6px; background: rgba(8, 17, 24, .8); color: #eef6f7; cursor: pointer; }
.wiki-classic-search:hover, .wiki-classic-search:focus-visible { border-color: #6ac7d4; color: #fff; }
.wiki-classic-nav { display: flex; justify-content: center; border-top: 1px solid #355263; border-bottom: 1px solid #02070a; background: linear-gradient(#142a38, #07121b); }
.wiki-classic-nav a { box-sizing: border-box; flex: 0 1 320px; padding: 10px 18px; border-left: 1px solid #345060; border-right: 1px solid #050d13; background: linear-gradient(#1c3545, #091722); color: #d8d7cb !important; font-family: Impact, 'Arial Narrow', Arial, sans-serif; font-size: 18px; font-weight: 400; letter-spacing: .7px; text-align: center; text-decoration: none; text-shadow: 1px 1px #000; text-transform: uppercase; }
.wiki-classic-nav a:hover, .wiki-classic-nav a:focus-visible, .wiki-classic-nav a.is-active { background: linear-gradient(#35586b, #112838); color: #fff !important; }
.wiki-classic-menu { display: none; }
@media (min-width: 801px) { .wiki-classic-nav.collapse, .wiki-classic-nav.collapsing { display: flex !important; height: auto !important; visibility: visible; } }
@media (max-width: 800px) {
  .wiki-classic-hero { height: 140px; background-position: 62% 40%; }
  .wiki-classic-brand { left: 18px; bottom: 22px; }
  .wiki-classic-brand b { font-size: 34px; }
  .wiki-classic-brand > span { font-size: 11px; letter-spacing: 3px; }
  .wiki-classic-actions { top: 10px; right: 14px; }
  .wiki-classic-menu { display: block; position: absolute; right: 14px; bottom: 14px; padding: 8px 12px; border: 1px solid #68818c; border-radius: 3px; background: #101d26; color: #fff; font-weight: 700; text-transform: uppercase; }
  .wiki-classic-nav.collapse:not(.show) { display: none; }
  .wiki-classic-nav.show, .wiki-classic-nav.collapsing { display: flex; flex-direction: column; }
  .wiki-classic-nav a { flex: none; width: 100%; padding: 11px 18px; font-size: 14px !important; text-align: left; }
}
