/* Layout */
@font-face {font-family: SP-Regular;src: url(../fonts/Poppins-Regular.ttf);}

body { margin: 0; font-family: 'SP-Regular', Verdana, sans-serif; }
.kb-header{
  padding: 12px 16px 0px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

a{
  text-decoration: none;
  font-weight: 600;
  color: rgb(26, 71, 214);
}

a:visited {
  color: rgb(26, 71, 214);
}

ol{
  padding-inline-start: 20px;
}

ol li{
  padding-bottom: 10px;
  line-height: 1.3em;
}

h1{
  line-height: 1.2em;
}

strong {
  color: rgb(100, 45, 124);
  color: rgb(96, 71, 154);
}

.kb-header-left{
  display: flex;
  align-items: center;
  gap: 16px;
}

.kb-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.kb-brand-logo{
  height: 24px;     /* adjust to taste */
  width: auto;
  display: block;
}

.kb-brand-text{
  white-space: nowrap;
  position: relative;
  top: 2px;
}

[hidden] { display: none !important; }

/* Layout: single column now */
.kb-layout { display: block; min-height: calc(100vh - 60px); }

.kb-main { padding: 6px 18px 18px; }
.kb-main-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }


/* Platform switcher */
/* Platform container defaults (large screens): to the right of search */
.kb-header-platform{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}


/* Platform dropdown (custom button + ul) */
#kb-platform { position: relative; display: inline-block; }

#kb-platform-btn{
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
}

#kb-platform-btn:focus-visible{
  outline: 2px solid rgba(0,0,0,0.25);
  border-radius: 8px;
}

.kb-platform-caret { margin-left: 6px; font-size: 12px; color: #666; }

#kb-platform-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;

  margin: 0;
  padding: 6px;
  list-style: none;

  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 1000;
}

#kb-platform-menu button{
  width: 100%;
  text-align: left;

  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;

  cursor: pointer;
  font-size: 14px;
  color: #333;
}

#kb-platform-menu button:hover,
#kb-platform-menu button:focus-visible{
  background: #f3f3f3;
  outline: none;
}

/* Platform content visibility (scope ONLY to kb-content) */
#kb-content .kb-platform { display: none; }
#kb-content .kb-platform-web { display: block; } /* default */

body[data-platform="web"] #kb-content .kb-platform { display: none; }
body[data-platform="web"] #kb-content .kb-platform-web { display: block; }

body[data-platform="ios"] #kb-content .kb-platform { display: none; }
body[data-platform="ios"] #kb-content .kb-platform-ios { display: block; }

body[data-platform="android"] #kb-content .kb-platform { display: none; }
body[data-platform="android"] #kb-content .kb-platform-android { display: block; }

body[data-platform="desktop"] #kb-content .kb-platform { display: none; }
body[data-platform="desktop"] #kb-content .kb-platform-desktop { display: block; }



/* Search */
.kb-search { flex: 1; min-width: 260px; }
#kb-search-input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd; }
.kb-search-status { font-size: 12px; color: #666; margin-top: 6px; }
.kb-search-results { list-style: none; padding: 0; margin: 8px 0 0 0; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
#kb-search-results {
  display: none;
}
.kb-search-item a { display: block; padding: 10px 12px; text-decoration: none; color: inherit; font-weight: 600; border-top: 1px solid #eee; }
.kb-search-item:first-child a { border-top: none; }
.kb-search-snippet { margin: -6px 0 0 0; padding: 0 12px 10px 12px; color: #555; font-size: 13px; }
.kb-search-empty { padding: 10px 12px; color: #666; }
mark { background: #fff3b0; }


/* Nav buttons */
.kb-navbtn{
  border: 1px solid #eee;
  background: #fff;
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kb-navbtn svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.kb-navbtn:hover{
  background: #f6f6f6;
}

.kb-navbtn:disabled{
  opacity: 0.4;
  cursor: default;
}



/* Notices / errors */
.kb-platform-notice { padding: 12px 14px; border-radius: 10px; background: #fff4d0; margin-bottom: 14px; }
.kb-error { padding: 12px 14px; border-radius: 10px; background: #ffe3e3; }


/* Small screens: platform sits on the same line as brand, aligned right */
@media (max-width: 768px){
  .kb-header-left{
    flex: 1;
    min-width: 0;
  }

  .kb-header-platform{
    margin-left: auto;   /* push to the far right */
    order: 0;            /* stays up top */
  }

  .kb-search{
    order: 1;            /* search drops below */
    flex-basis: 100%;
    min-width: 0;
  }
}


/* menu items */
.kb-topic-menu{
  margin-top: 25px;
}

.kb-topic-menu p{
  border: 1px solid #ccc;
  padding: 15px 15px;
  border-radius: 10px;
  position: relative;
  width: calc(100% - 35px);
  cursor: pointer;
}

.kb-topic-menu p a{
  width: 100%;
}

.kb-topic-menu p a::after{
  content: "\2192";
  position: absolute;
  right: 15px;
  color: rgb(96, 71, 214);
}

.kb-menu{
  margin-top: 25px;
}

.kb-menu p{
  border: 1px solid #ccc;
  padding: 15px 15px;
  border-radius: 10px;
  position: relative;
  width: calc(100% - 35px);
  cursor: pointer;
}

.kb-menu p a{
  width: 100%;
}

.kb-menu p a::after{
  content: "\2192";
  position: absolute;
  right: 15px;
  color: rgb(96, 71, 214);
}