@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #06174D;
  color: #e2e8f0;
  line-height: 1.65;
  padding: 0;
  margin: 0;
  min-height: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

/* GPU-accelerated fixed background pattern layer (prevents WebView zoom / stretch blur) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: #06174D;
  background-image: url('/Background_pattern.png');
  background-repeat: repeat;
  background-position: center top;
  background-size: 100% auto;
  pointer-events: none;
  z-index: -1;
  transform: translateZ(0);
}

@media screen and (min-width: 769px) {
  body::before {
    background-size: cover;
  }
}

/* Native App Container */
.custom-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 10px calc(20px + env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  background-color: #122355;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 4px;
  text-align: center;
  letter-spacing: -0.3px;
}

.update-date {
  font-size: 13px;
  color: #9bb7ee;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

/* Content Sections */
.section {
  margin-bottom: 22px;
  scroll-margin-top: 24px;
}

.section h2 {
  font-size: 17.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 14px;
  margin-bottom: 6px;
}

.section p {
  color: #cbd9f4;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.section ul,
.section ol {
  margin: 6px 0 12px 20px;
  color: #cbd9f4;
}

.section ul li,
.section ol li {
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.55;
}

.section a {
  color: #EFA404;
  text-decoration: none;
  font-weight: 600;
}

.section a:hover,
.section a:active {
  text-decoration: underline;
  color: #ffb82e;
}

.docs-page .accordion-item:last-of-type {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.docs-page .accordion-item {
  border: none;
  border-bottom: 1px solid #334155;
  color: #fff;
}

.docs-page .accordion-item,
.docs-page .accordion-button {
  background-color: transparent;
}

.docs-page .accordion-button {
  color: #fff;
  outline: none
}

.docs-page .accordion-button:focus {
  box-shadow: none;
  outline: none
}

.docs-page ul li p {
  margin-bottom: 0;
}

.docs-page .accordion-body {
  padding-top: 0;
}

.docs-page .accordion-body p {
  color: #b2c2d8;
  margin-bottom: 10px;
}

.docs-page .accordion-body h3 {
  font-size: 20px;
}

.docs-page .accordion-body a {
  color: #EFA404;
}

.docs-page .accordion-body a:hover {
  color: #ffffff;
}

.docs-page .accordion-button:not(.collapsed) {
  color: #EFA404;
  background-color: transparent;
  font-weight: 600;
  box-shadow: none;
}

.docs-page .accordion-button::after {
  background-image: url(../arrow.png);
}

/* Smooth Accordion Transitions */
.accordion-collapse {
  transition: cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out, padding 0.35s ease-in-out !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: block !important;
}

.accordion-collapse.show {
  max-height: 100%;
  opacity: 1;
}

.accordion-button {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.accordion-button::after {
  transition: transform 0.25s ease-in-out;
}

/* Responsive Adjustments */

@media screen and (max-width: 640px) {
  .custom-container {
    padding: 15px 10px;
    width: 95%;
  }

  .page-title {
    font-size: 22px;
  }

  .section h2 {
    font-size: 16.5px;
  }

  .section p,
  .section ul li,
  .section ol li {
    font-size: 14px;
  }

  .docs-page .accordion-body p {
    margin-bottom: 7px;
    font-size: 13.5px;
  }
}