/* Help page needs its own scrolling; the main app stylesheet disables body scroll */
html{ height:auto; }
body{ height:auto; overflow:auto; }

/* Layout */
.helpWrap{ max-width:1600px; margin:18px auto; padding:0 28px 28px; }

/* Header bar with Close button */
.helpHeaderBar{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
}

.helpHeaderBar h1{
  flex:1 1 auto;
  margin:0;
  font-size:22px;
  font-weight:900;
  letter-spacing:0.2px;
}

.helpCloseBtn{
  margin-left:auto;
  flex-shrink:0;
  height:32px;
  padding:0 14px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color:#fff;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  line-height:32px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.helpCloseBtn:hover{
  box-shadow: 0 0 14px rgba(242,201,76,0.85);
  border-color: rgba(242,201,76,0.55);
}

.helpCloseBtn:active{
  transform: translateY(1px);
}

/* Subtitle */
.helpSub{
  margin:8px 0 0 0;
  color:rgba(243,246,255,0.78);
  font-size:13px;
  line-height:1.45;
}

/* Contents / TOC */
.helpContents{
  margin-top:16px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  border-radius:16px;
  padding:14px 16px;
}

.helpContentsTitle{
  font-weight:900;
  font-size:14px;
  color:rgba(243,246,255,0.92);
  margin-bottom:10px;
}

/* Search input */
.helpSearchWrap{
  position:relative;
  margin-bottom:12px;
  max-width:calc((100% - 42px) / 4);
}

.helpSearchClear{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:22px;
  height:22px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,0.12);
  color:rgba(243,246,255,0.70);
  font-size:15px;
  line-height:1;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  padding:0;
  transition: background 0.15s, color 0.15s;
}

.helpSearchClear:hover{
  background:rgba(255,255,255,0.22);
  color:#fff;
}

.helpSearchClear:active{
  transform:translateY(-50%);
}

.helpSearchWrap.hasText .helpSearchClear{
  display:inline-flex;
}

.helpSearchInput{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin-bottom:0;
  padding:8px 34px 8px 12px;
  border-radius:10px;
  border:1px solid rgba(100,180,255,0.35);
  background:rgba(60,120,200,0.12);
  color:rgba(243,246,255,0.92);
  font-size:13px;
  font-family:inherit;
  outline:none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.helpSearchInput::placeholder{
  color:rgba(243,246,255,0.40);
}

.helpSearchInput:focus{
  border-color:rgba(100,180,255,0.65);
  box-shadow: 0 0 8px rgba(100,180,255,0.25);
}

.helpTOCGrid a.tocHidden{
  display:none;
}

.helpTOCGrid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap:8px 14px;
}

.helpTOCGrid a{
  color: rgba(234, 240, 255, 0.85);
  text-decoration:none;
  font-size:13px;
  line-height:1.35;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(0,0,0,0.10);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.helpTOCGrid a:hover{
  color:rgba(242,201,76,0.95);
  border-color:rgba(212,175,55,0.30);
  background:rgba(212,175,55,0.10);
}

.helpTOCGrid a:visited{
  color: rgba(234, 240, 255, 0.85);
}

.helpTOCGrid a.active{
  border-color: rgba(242,201,76,0.55);
  background: rgba(242,201,76,0.14);
}

/* Sections */
.helpSection{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,0.10);
}

.helpSection h2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 8px 0;
  font-size:16px;
  font-weight:900;
  color:rgba(212,175,55,0.95);
  scroll-margin-top: 18px;
}

.helpSection p,
.helpSection li{
  color:rgba(243,246,255,0.86);
  line-height:1.55;
  font-size:14px;
}

.helpSection ul,
.helpSection ol{
  margin:8px 0 0 18px;
  padding:0;
}

.helpSection li{
  margin-bottom:4px;
}

/* Highlighted section when jumped to via anchor */
.helpSection h2:target{
  background: rgba(242,201,76,0.18);
  box-shadow: 0 0 0 2px rgba(242,201,76,0.65), 0 0 22px rgba(242,201,76,0.75);
  border-radius: 8px;
  padding: 8px 10px;
}

/* Notes / callouts */
.helpNote{
  margin-top:10px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(212,175,55,0.2);
  background:rgba(212,175,55,0.06);
  color:rgba(243,246,255,0.86);
  font-size:13px;
  line-height:1.55;
}

/* Back to top icon button */
.backTop{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.35);
  text-decoration:none;
  transition: box-shadow 0.15s, border-color 0.15s, background 0.15s, transform 0.12s;
}

.backTop img{
  width:14px;
  height:14px;
  display:block;
}

.backTop:hover{
  background: rgba(212,175,55,0.18);
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 0 8px rgba(212,175,55,0.2);
  transform: scale(1.08);
}

/* Inline styling bits */
.kbd{
  display:inline-block;
  padding:2px 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  font-weight:800;
  font-size:12px;
  letter-spacing:0.1px;
}

.smallPrint{
  margin-top:14px;
  color:rgba(243,246,255,0.70);
  font-size:12px;
  line-height:1.55;
}
