.knowledgebase-page {
  --kb-blue: #4da3ff;
  --kb-cyan: #57e3ff;
  --kb-panel: rgba(12, 25, 44, .92);
}

.primary-nav { gap: 21px; }

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  position: relative;
  padding: 10px 18px 10px 0;
  list-style: none;
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 700;
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::before { content: none; }
.nav-dropdown > summary::after {
  content: "⌄";
  position: absolute;
  right: 0;
  top: 8px;
  color: var(--blue-bright);
  font-size: .86rem;
  transition: transform .2s ease;
}

.nav-dropdown[open] > summary::after { transform: rotate(180deg); }
.nav-dropdown > summary:hover,
.nav-dropdown > summary:focus-visible { color: #fff; }

.nav-dropdown-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 50%;
  width: 320px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(4, 11, 22, .98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .48);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.nav-dropdown-menu a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border-radius: 11px;
}

.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible { background: rgba(37, 134, 255, .12); }
.nav-dropdown-label { display: block; padding: 4px 5px 2px; color: var(--blue-bright); font-size: .65rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.game-hosting-menu { left: 50%; display: grid; width: min(1080px, calc(100vw - 20px)); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; overflow: hidden; max-height: min(78vh, 820px); overflow-y: auto; }
.game-hosting-menu .nav-dropdown-label { grid-column: 1 / -1; }
.game-hosting-menu > a:not(.nav-catalog-button) { position: relative; isolation: isolate; display: flex; min-height: 92px; align-items: flex-end; overflow: hidden; padding: 14px; border: 1px solid rgba(122, 187, 255, .24); border-radius: 13px; background: #07111f; }
.game-hosting-menu > a:not(.nav-catalog-button)::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(2, 8, 17, .04) 12%, rgba(2, 8, 17, .48) 52%, rgba(2, 8, 17, .97) 100%), linear-gradient(90deg, rgba(2, 8, 17, .72), transparent 72%); }
.nav-game-art { position: absolute; z-index: -2; inset: 0; display: block; overflow: hidden; background: #07111f; }
.nav-game-art img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); transition: transform .35s ease, filter .35s ease; }
.game-hosting-menu > a:hover .nav-game-art img,
.game-hosting-menu > a:focus-visible .nav-game-art img { transform: scale(1.07); filter: saturate(1.12) contrast(1.08); }
.game-hosting-menu .nav-game-copy { position: relative; z-index: 1; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.game-hosting-menu .nav-game-copy strong { font-size: .9rem; line-height: 1.18; }
.game-hosting-menu .nav-game-copy small { margin-top: 4px; color: rgba(226, 238, 252, .78); }
.nav-dropdown-menu .nav-catalog-button { grid-column: 1 / -1; display: flex; grid-template-columns: none; justify-content: space-between; width: auto; margin: 3px -12px -12px; padding: 15px 18px; border: 0; border-top: 1px solid rgba(77, 163, 255, .46); border-radius: 0 0 16px 16px; color: #fff; background: linear-gradient(135deg, rgba(37, 134, 255, .38), rgba(25, 108, 218, .22)); font-size: .8rem; font-weight: 900; }
.nav-game-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; color: var(--blue-bright); background: rgba(37, 134, 255, .08); font-size: .72rem; font-weight: 950; }
.nav-partner-logo { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1px solid rgba(77, 163, 255, .32); border-radius: 11px; background: linear-gradient(145deg, rgba(10, 31, 55, .98), rgba(3, 10, 20, .98)); }
.nav-partner-logo img { display: block; width: 34px; height: 34px; object-fit: contain; }
.nav-game-copy strong { display: block; color: #fff; font-size: .82rem; }
.nav-game-copy small { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; }

.kb-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(55, 216, 255, .15), transparent 27rem),
    radial-gradient(circle at 16% 90%, rgba(37, 134, 255, .17), transparent 30rem),
    linear-gradient(145deg, rgba(10, 34, 68, .84), rgba(3, 7, 17, .98));
}

.kb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image:
    linear-gradient(rgba(132, 181, 240, .17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 181, 240, .17) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.kb-hero-inner { position: relative; z-index: 2; max-width: 920px; }
.kb-hero h1 { margin: 0; max-width: 880px; font-size: clamp(3rem, 7vw, 6.6rem); line-height: .94; letter-spacing: -.065em; }
.kb-hero h1 span { color: var(--blue-bright); }
.kb-hero .lead { max-width: 760px; margin: 22px 0 0; color: var(--muted-strong); font-size: 1.12rem; }

.kb-search-wrap {
  position: relative;
  max-width: 760px;
  margin-top: 30px;
}

.kb-search {
  width: 100%;
  min-height: 58px;
  padding: 0 124px 0 50px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  outline: none;
  color: #fff;
  background: rgba(3, 10, 21, .86);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .25);
}

.kb-search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 134, 255, .14); }
.kb-search-icon { position: absolute; left: 18px; top: 16px; color: var(--blue-bright); font-size: 1.1rem; }
.kb-search-count { position: absolute; right: 16px; top: 18px; color: var(--muted); font-size: .74rem; font-weight: 750; }

.kb-stat-strip { border-bottom: 1px solid var(--line); background: #06101d; }
.kb-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.kb-stat { min-height: 78px; padding: 18px 22px; border-right: 1px solid var(--line); }
.kb-stat:last-child { border-right: 0; }
.kb-stat strong { display: block; color: #fff; font-size: 1.15rem; }
.kb-stat span { color: var(--muted); font-size: .76rem; }

.game-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-guide-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(150deg, rgba(17, 31, 52, .96), rgba(7, 15, 27, .98));
  transition: transform .2s ease, border-color .2s ease;
}

.game-guide-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.game-guide-card::after { content: attr(data-mark); position: absolute; right: -8px; bottom: -36px; color: rgba(77, 163, 255, .07); font-size: 8rem; font-weight: 950; letter-spacing: -.08em; }
.game-guide-card > * { position: relative; z-index: 1; }
.game-guide-card .status { margin-bottom: 18px; }
.game-guide-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.game-guide-card p { margin: 0 0 20px; color: var(--muted); font-size: .86rem; }
.game-guide-card .text-link { display: inline-block; }

.category-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.category-filter {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--panel);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 800;
}
.category-filter:hover,
.category-filter:focus-visible,
.category-filter.is-active { border-color: var(--blue); color: #fff; background: rgba(37, 134, 255, .15); }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--kb-panel);
  transition: transform .18s ease, border-color .18s ease;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.guide-card[hidden] { display: none; }
.guide-category { color: var(--blue-bright); font-size: .65rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.guide-card h3 { margin: 9px 0 8px; font-size: 1.02rem; line-height: 1.25; }
.guide-card p { margin: 0; color: var(--muted); font-size: .79rem; }
.guide-card .text-link { margin-top: auto; padding-top: 17px; font-size: .77rem; }
.no-results { grid-column: 1 / -1; padding: 44px; border: 1px dashed var(--line-strong); border-radius: 18px; text-align: center; color: var(--muted); }
.no-results[hidden] { display: none; }

.category-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { display: flex; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.category-card strong { display: block; }
.category-card small { color: var(--muted); }
.category-count { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; color: var(--blue-bright); background: rgba(37, 134, 255, .1); font-weight: 900; }

.article-hero { padding: 66px 0 58px; }
.article-hero h1 { max-width: 980px; font-size: clamp(2.5rem, 6vw, 5.2rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.article-meta span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-strong); background: rgba(255, 255, 255, .025); font-size: .7rem; font-weight: 750; }

.article-layout { display: grid; grid-template-columns: minmax(220px, .28fr) minmax(0, .72fr); gap: 28px; align-items: start; padding-top: 56px; }
.article-sidebar { position: sticky; top: 100px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.article-sidebar h2 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.article-sidebar nav { display: grid; gap: 7px; }
.article-sidebar nav a { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.article-sidebar nav a:hover { color: #fff; }
.article-sidebar .button { width: 100%; margin-top: 20px; min-height: 42px; padding-inline: 12px; font-size: .75rem; }

.kb-article { min-width: 0; padding: 36px clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 24px; background: rgba(8, 18, 32, .94); box-shadow: var(--shadow); }
.c22-dayz-kb { line-height: 1.75; }
.c22-dayz-kb > :first-child { margin-top: 0; }
.c22-dayz-kb h2 { margin: 42px 0 14px; padding-top: 6px; color: #fff; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.16; letter-spacing: -.035em; }
.c22-dayz-kb h3 { margin: 28px 0 10px; color: #eaf2ff; font-size: 1.16rem; }
.c22-dayz-kb p,
.c22-dayz-kb li { color: #bcc9dc; }
.c22-dayz-kb a { color: #73b8ff; text-decoration: underline; text-decoration-color: rgba(115, 184, 255, .3); text-underline-offset: 3px; }
.c22-dayz-kb a:hover { color: #fff; }
.c22-dayz-kb ul,
.c22-dayz-kb ol { padding-left: 1.35rem; }
.c22-dayz-kb li { margin: 7px 0; }
.c22-dayz-kb hr { margin: 38px 0; border: 0; border-top: 1px solid var(--line); }
.c22-dayz-kb pre { max-width: 100%; padding: 18px; overflow-x: auto; border: 1px solid #263449; border-radius: 11px; color: #e5e7eb; background: #0f172a; white-space: pre; }
.c22-dayz-kb pre code { color: #e5e7eb; background: transparent; }
.c22-dayz-kb code { padding: .12em .34em; border-radius: 5px; color: #74bdff; background: rgba(67, 130, 214, .12); }
.c22-dayz-kb table { width: 100%; margin: 24px 0; border-collapse: collapse; }
.c22-dayz-kb th,
.c22-dayz-kb td { padding: 12px; border: 1px solid #334155; text-align: left; vertical-align: top; }
.c22-dayz-kb th { color: #fff; background: #111827; }
.c22-dayz-kb .kb-callout { margin: 26px 0; padding: 18px 20px; border: 1px solid #334155; border-radius: 11px; background: #111827; }
.c22-dayz-kb .kb-callout p:last-child { margin-bottom: 0; }
.c22-dayz-kb .kb-info { border-left: 4px solid #3b82f6; }
.c22-dayz-kb .kb-warning { border-left: 4px solid #f59e0b; }
.c22-dayz-kb .kb-danger { border-left: 4px solid #ef4444; }
.c22-dayz-kb .kb-success { border-left: 4px solid #22c55e; }
.c22-dayz-kb .kb-button { display: inline-block; padding: 9px 16px; margin: 6px 4px 6px 0; border-radius: 7px; color: #fff; background: #2563eb; font-weight: 700; text-decoration: none; }
.c22-dayz-kb small { color: #8494aa; }

.blog-empty { min-height: 430px; display: grid; place-items: center; padding: 70px 24px; border: 1px solid var(--line); border-radius: 25px; text-align: center; background: linear-gradient(145deg, rgba(16, 31, 53, .97), rgba(7, 14, 25, .99)); }
.blog-empty-mark { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 24px; border: 1px solid var(--line-strong); border-radius: 22px; color: var(--blue-bright); background: rgba(37, 134, 255, .1); font-size: 1.8rem; font-weight: 950; }
.blog-empty h2 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.blog-empty p { max-width: 620px; margin: 0 auto 24px; color: var(--muted); }

.knowledgebase-page :focus-visible { outline: 3px solid rgba(80, 164, 255, .68); outline-offset: 3px; }

@media (max-width: 1080px) {
  .guide-grid,
  .game-directory,
  .category-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .primary-nav { gap: 3px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > summary { padding: 11px 30px 11px 12px; }
  .nav-dropdown > summary::after { right: 12px; top: 10px; }
  .nav-dropdown-menu { position: static; width: 100%; max-width: none; padding: 7px; transform: none; box-shadow: none; }
  .game-hosting-menu { grid-template-columns: 1fr; gap: 7px; }
  .game-hosting-menu .nav-dropdown-label,
  .nav-dropdown-menu .nav-catalog-button { grid-column: 1; }
  .game-hosting-menu > a:not(.nav-catalog-button) { min-height: 88px; }
  .kb-stats { grid-template-columns: repeat(2, 1fr); }
  .kb-stat:nth-child(2) { border-right: 0; }
  .kb-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 580px) {
  .kb-hero { padding: 58px 0 52px; }
  .kb-search { padding-right: 18px; }
  .kb-search-count { position: static; display: block; margin-top: 8px; }
  .guide-grid,
  .game-directory,
  .category-directory,
  .article-sidebar nav { grid-template-columns: 1fr; }
  .kb-article { padding: 27px 20px; }
  .c22-dayz-kb pre { white-space: pre-wrap; }
}


/* Wider Game Hosting mega-menu (2026-09-26 menu3) — keep 3 cols until mobile nav */
.game-hosting-menu {
  left: 50%;
  display: grid;
  width: min(1080px, calc(100vw - 20px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  max-height: min(78vh, 820px);
  overflow-y: auto;
}
@media (max-width: 1100px) {
  /* Was forcing 2-col here — that hit ~951–1100px laptop windows. Keep 3; shrink tiles. */
  .game-hosting-menu {
    width: min(1000px, calc(100vw - 16px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }
  .game-hosting-menu > a:not(.nav-catalog-button) { min-height: 76px; padding: 11px; }
  .game-hosting-menu .nav-game-copy strong { font-size: .84rem; }
  .game-hosting-menu .nav-game-copy small { font-size: .62rem; }
}
@media (max-width: 720px) {
  .game-hosting-menu { width: min(420px, calc(100vw - 20px)); grid-template-columns: 1fr; max-height: min(70vh, 640px); }
}
