
:root {
  --bg: #1c1410;
  --bg-card: #2a1f17;
  --text: #f0e6d3;
  --text-muted: rgba(255,255,255,0.5);
  --accent: #ff6b35;
  --accent-rgb: 255,107,53;
  --accent2: #86ff35;
  --accent2-rgb: 134,255,53;
  --accent3: #ff4fb2;
  --accent3-rgb: 255,79,178;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --font: 'Roboto', sans-serif;
  --font-heading: 'Roboto', sans-serif;
  --bodyBG: #1c1410;
  --textColor1: #f0e6d3;
  --textColor2: #111111;
  --textSecondary: #bbb2a2;
  --textMuted: #867d72;
  --secondStyleColor: #ff6b35;
  --bgCard: #2a1f17;
  --bgAlt: #2d2520;
  --borderSubtle: rgba(255,255,255,0.08);
  --borderRadius: 12px;
  --maxWidthContainer: 1200px;
  --scrollbarBg: rgba(255,255,255,0.1);
  --itemBgColor: transparent;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 100vw; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 100vw; }
::-webkit-scrollbar-thumb:hover { background: var(--secondStyleColor); filter: brightness(1.2); }
::-webkit-scrollbar-thumb:active { background: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) rgba(255,255,255,0.05); }

body {
  font-family: var(--font);
  background: var(--bodyBG);
  color: var(--textColor1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxWidthContainer);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; object-position: 50% 20%; }
ul { list-style: none; }
html { scroll-behavior: smooth; }

/* Standardized typography */
section h1 {
  font-size: 48px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}
section h2 {
  font-size: 36px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}
section h3 {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
section h4 {
  font-size: 18px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
section p,
section li {
  font-size: 16px !important;
  line-height: 1.7 !important;
}
footer p,
footer li,
footer a {
  font-size: 14px !important;
  line-height: 1.6 !important;
}
footer h3 {
  font-size: 16px !important;
}
@media (max-width: 900px) {
  section h1 {
    font-size: 36px !important;
  }
  section h2 {
    font-size: 28px !important;
  }
}
@media (max-width: 600px) {
  section h1 {
    font-size: 30px !important;
  }
  section h2 {
    font-size: 24px !important;
  }
  section h3 {
    font-size: 18px !important;
  }
  section p,
  section li {
    font-size: 15px !important;
  }
}

/* Heading font */
section h1, section h2, section h3, section h4,
header h1, header h2, header h3, header h4,
footer h3 {
  font-family: var(--font-heading) !important;
}

/* Standardized section spacing */
section {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}
header, nav { padding-top: 0 !important; padding-bottom: 0 !important; }
footer {
  padding-top: 40px !important;
  padding-bottom: 24px !important;
}
section.toc {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.site-disclaimer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
}
.site-disclaimer p {
  font-size: 14px !important;
  font-style: italic;
  line-height: 1.5 !important;
  color: var(--textMuted);
  max-width: 800px;
  margin: 0 auto;
}
.toc .swiper-wrapper {
}
@media (max-width: 768px) {
  body > section,
  body > div > section,
  body > section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
}

/* Secondary pages */
.sec-page { padding: 80px 0; min-height: 60vh; }
.page-content { max-width: var(--maxWidthContainer); }
.page-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 24px; }
.page-content h2 { font-size: 1.3rem; font-weight: 600; margin: 36px 0 12px; color: var(--textColor1); }
.page-content p { margin-bottom: 16px; color: var(--textSecondary); line-height: 1.8; font-size: 0.95rem; }
.page-content a { color: var(--secondStyleColor); text-decoration: underline; }
.page-content a:hover { opacity: 0.8; }

/* Overflow protection — word wrap only, no clipping */
section p,
section li,
section summary {
  overflow-wrap: break-word;
}


.hd8 {
  background: var(--secondStyleColor);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.hd8__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.hd8__logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--textColor2);
  text-decoration: none;
  letter-spacing: .02em;
}

/* Nav anchors */
.hd8__nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hd8__link {
  color: var(--textColor2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: .85;
  transition: opacity .2s ease;
}
.hd8__link:hover {
  opacity: 1;
}

/* CTA button */
.hd8__cta {
  display: inline-block;
  padding: 8px 22px;
  background: var(--textColor2);
  color: var(--secondStyleColor) !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  transition: opacity .2s ease;
  white-space: nowrap;
}
.hd8__cta:hover {
  opacity: .85;
}

/* Burger */
.hd8__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hd8__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--textColor2);
  border-radius: 2px;
  transition: all .3s ease;
  margin: 0 auto;
}
.hd8__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hd8__burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hd8__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown */
.hd8__dropdown {
  position: absolute;
  top: 100%;
  right: 20px;
  background: var(--bodyBG);
  border: 1px solid rgba(128,128,128,.15);
  border-radius: var(--borderRadius);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s ease;
  z-index: 99;
  min-width: 200px;
}
.hd8__dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hd8__dropdown ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.hd8__dropdown li + li {
  border-top: 1px solid rgba(128,128,128,.08);
}
.hd8__dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--textColor1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s ease;
  white-space: nowrap;
}
.hd8__dropdown a:hover {
  background: rgba(128,128,128,.08);
  color: var(--secondStyleColor);
}

@media (max-width: 600px) {
  .hd8__nav { display: none; }
  .hd8__cta { display: none; }
}



  .ft5 {
    position: relative;
    padding: 0 0 20px;
    color: var(--textColor1);
  }

  .ft5__accent {
    height: 3px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--secondStyleColor) 30%,
      var(--secondStyleColor) 70%,
      transparent 100%
    );
    margin-bottom: 32px;
  }

  .ft5__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 24px;
  }

  .ft5__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .ft5__logo {
    color: var(--textColor1);
    text-decoration: none;
    font-weight: 700;
  }

  .ft5__social {
    display: flex;
    gap: 12px;
  }

  .ft5__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--borderRadius);
    background: color-mix(in srgb, var(--secondStyleColor) 10%, transparent);
    color: var(--textColor1);
    text-decoration: none;
    font-size: 15px;
    transition:
      background 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .ft5__social a:hover {
    background: color-mix(in srgb, var(--secondStyleColor) 25%, transparent);
    color: var(--secondStyleColor);
    transform: translateY(-2px);
  }

  .ft5__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-end;
    row-gap: 8px;
  }

  .ft5__nav a {
    padding: 6px 16px;
    border-radius: var(--borderRadius);
    border: 1px solid color-mix(in srgb, var(--textColor1) 20%, transparent);
    color: var(--textColor1);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition:
      border-color 0.2s ease,
      color 0.2s ease,
      background 0.2s ease;
  }

  .ft5__nav a:hover {
    border-color: var(--secondStyleColor);
    color: var(--secondStyleColor);
    background: color-mix(in srgb, var(--secondStyleColor) 8%, transparent);
  }

  .ft5__bottom {
    border-top: 1px solid color-mix(in srgb, var(--textColor2) 12%, transparent);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  .ft5__copy {
    font-size: 13px;
    color: var(--textColor1);
    margin: 0;
  }

  .ft5__email {
    font-size: 13px;
    color: var(--textColor1);
    margin: 0;
  }

  @media (max-width: 950px) {
    .ft5__top {
      flex-direction: column;
      gap: 24px;
    }

    .ft5__nav {
      justify-content: flex-start;
    }
  }

  @media (max-width: 800px) {
    .ft5__bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  }

  @media (max-width: 600px) {
    .ft5__accent {
      margin-bottom: 24px;
    }

    .ft5__nav {
      gap: 6px;
    }

    .ft5__nav a {
      padding: 5px 12px;
      font-size: 12px;
    }

    .ft5__social a {
      width: 32px;
      height: 32px;
      font-size: 14px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .ft5__social a,
    .ft5__nav a {
      transition: none;
    }
  }


[data-aos]{opacity:0;transition:opacity 0.6s ease,transform 0.6s ease}
[data-aos="fade-up"]{transform:translateY(30px)}
[data-aos="fade-in"]{transform:none}
[data-aos="slide-left"]{transform:translateX(-30px)}
[data-aos="slide-right"]{transform:translateX(30px)}
[data-aos].aos-visible{opacity:1;transform:none}