:root {
  color-scheme: dark;
  font-family:
    Inter,
    "Noto Sans",
    "Noto Sans Arabic",
    "Noto Sans Devanagari",
    "Noto Sans CJK SC",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #050b12;
  color: #eef5ff;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,190,255,.10), transparent 34rem),
    #050b12;
}

a {
  color: #65d9ff;
}

.help-topbar {
  position: sticky;
  z-index: 50;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 72px;
  padding: 12px clamp(18px,4vw,54px);

  border-bottom: 1px solid rgba(110,210,255,.16);
  background: rgba(5,11,18,.94);
  backdrop-filter: blur(16px);
}

.help-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.help-brand strong {
  letter-spacing: .12em;
}

.help-brand span {
  color: #8ea5b6;
  font-size: .8rem;
}

.help-language {
  position: relative;
}

#languageButton {
  min-width: 70px;
  padding: 9px 14px;

  border: 1px solid rgba(120,210,255,.45);
  border-radius: 999px;

  color: #fff;
  background: #0c1722;

  font: inherit;
  cursor: pointer;
}

.help-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;

  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 6px;

  padding: 9px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;

  background: #0c1722;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.help-language-menu[hidden] {
  display: none;
}

.help-language-menu button {
  min-height: 38px;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;

  color: #fff;
  background: rgba(255,255,255,.05);

  font: inherit;
  cursor: pointer;
}

.help-language-menu button.is-active {
  border-color: #58d7ff;
  background: rgba(88,215,255,.14);
}

.help-shell {
  display: grid;
  grid-template-columns: minmax(220px,280px) minmax(0,900px);
  gap: clamp(28px,5vw,76px);

  width: min(1260px,92vw);
  margin: 0 auto;
  padding: 48px 0 100px;
}

.help-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;

  max-height: calc(100vh - 130px);
  overflow-y: auto;

  padding-inline-end: 18px;
}

.help-sidebar > a {
  display: block;
  margin-bottom: 18px;

  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

#chapterNavigation {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#chapterNavigation a {
  padding: 7px 9px;
  border-radius: 7px;

  color: #93a9b9;
  text-decoration: none;
  line-height: 1.35;
}

#chapterNavigation a:hover,
#chapterNavigation a.is-active {
  color: #fff;
  background: rgba(88,215,255,.10);
}

.help-content {
  min-width: 0;
  color: #c9d7e2;
  font-size: 1.03rem;
  line-height: 1.72;
}

.help-content h1,
.help-content h2,
.help-content h3 {
  color: #fff;
  line-height: 1.14;
}

.help-content h1 {
  margin: 0 0 34px;
  font-size: clamp(2.4rem,5vw,4.7rem);
}

.help-content h2 {
  margin-top: 52px;
  font-size: clamp(1.6rem,3vw,2.35rem);
}

.help-content h3 {
  margin-top: 34px;
}

.help-content code {
  padding: .13em .35em;
  border-radius: 5px;
  background: #101c27;
}

.help-content pre {
  overflow-x: auto;
  padding: 18px;

  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;

  background: #09131c;
}

.help-content pre code {
  padding: 0;
  background: transparent;
}

.help-content img {
  max-width: 100%;
  height: auto;
}

.help-content li {
  margin: .35em 0;
}

.help-error {
  padding: 20px;
  border: 1px solid rgba(255,100,100,.25);
  border-radius: 12px;
  background: rgba(255,80,80,.07);
}

html[dir="rtl"] .help-content,
html[dir="rtl"] .help-sidebar {
  text-align: right;
}

@media (max-width: 760px) {
  .help-topbar {
    min-height: 62px;
  }

  .help-shell {
    display: block;
    width: min(92vw,760px);
    padding-top: 26px;
  }

  .help-sidebar {
    position: static;
    max-height: none;

    margin-bottom: 28px;
    padding: 0 0 20px;

    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  #chapterNavigation {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .help-content {
    font-size: 1rem;
  }
}


/* PERUN_HELP_BRAND_FONT_V2 */
@font-face {
  font-family: "Perun Cinzel";
  src: url("/assets/fonts/CinzelDecorative-Regular.ttf")
       format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.perun-brand {
  font-family:
    "Perun Cinzel",
    "Cinzel Decorative",
    serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: .035em;
}
