
:root {
  --bg: #1b2d1b;
  --bg-card: #243524;
  --text: #d4e7d4;
  --text-muted: rgba(255,255,255,0.5);
  --accent: #4caf50;
  --accent-rgb: 76,175,80;
  --accent2: #4c8aaf;
  --accent2-rgb: 76,138,175;
  --accent3: #a5b85c;
  --accent3-rgb: 165,184,92;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --font: 'Poppins', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --bodyBG: #1b2d1b;
  --textColor1: #d4e7d4;
  --textColor2: #111111;
  --textSecondary: #a6b9a6;
  --textMuted: #788a78;
  --secondStyleColor: #4caf50;
  --bgCard: #243524;
  --bgAlt: #2a3c2a;
  --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;
}


  /* ===== HEADER v5 — Glass floating bar + centered nav pill ===== */

  .hd5 {
    position: relative;
    z-index: 100;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bodyBG) 85%, transparent),
      color-mix(in srgb, var(--bodyBG) 70%, transparent)
    );

    border-bottom: 1px solid
      color-mix(in srgb, var(--secondStyleColor) 12%, transparent);
  }

  .hd5__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
  }

  /* Logo */
  .hd5__logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--textColor1);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    z-index: 110;
  }

  /* Desktop nav — centered pill */
  .hd5__nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .hd5__nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 5px 6px;
    border-radius: 100px;
    border: 1px solid
      color-mix(in srgb, var(--secondStyleColor) 14%, transparent);
    background: color-mix(in srgb, var(--secondStyleColor) 5%, transparent);
  }

  .hd5__nav .hd5__link {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: color-mix(in srgb, var(--textColor1) 70%, transparent);
    text-decoration: none;
    border-radius: 100px;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  .hd5__nav .hd5__link:hover {
    color: var(--textColor1);
    background: color-mix(in srgb, var(--secondStyleColor) 12%, transparent);
  }

  /* CTA button */
  .hd5__cta {
    padding: 10px 22px;
    border-radius: var(--borderRadius);
    background: var(--secondStyleColor);
    color: var(--bodyBG);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .hd5__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px
      color-mix(in srgb, var(--secondStyleColor) 30%, transparent);
  }

  /* Burger — hidden on desktop */
  .hd5__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: none;
    border: 1px solid
      color-mix(in srgb, var(--secondStyleColor) 20%, transparent);
    border-radius: 10px;
    cursor: pointer;
    z-index: 110;
    transition: border-color 0.25s ease;
  }

  .hd5__burger:hover {
    border-color: color-mix(in srgb, var(--secondStyleColor) 50%, transparent);
  }

  .hd5__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--textColor1);
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
    transform-origin: center;
  }

  /* Burger active state */
  .hd5__burger.active .hd5__burger-line:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .hd5__burger.active .hd5__burger-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* Mobile overlay — hidden by default */
  .hd5__mobile {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--bodyBG);
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    transform: translateY(-100%);
    opacity: 0;
    transition:
      transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.3s ease;
    pointer-events: none;
  }

  .hd5__mobile.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hd5__mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .hd5__mobile .hd5__link {
    font-size: 22px;
    font-weight: 600;
    color: var(--textColor1);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .hd5__mobile .hd5__link:hover {
    color: var(--secondStyleColor);
  }

  .hd5__mobile-cta {
    padding: 14px 32px;
    border-radius: var(--borderRadius);
    background: var(--secondStyleColor);
    color: var(--bodyBG);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .stopScroll {
    overflow: hidden;
  }

  /* Responsive */
  @media (max-width: 800px) {
    .hd5__nav {
      display: none;
    }

    .hd5__cta {
      display: none;
    }

    .hd5__burger {
      display: flex;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hd5__mobile,
    .hd5__burger-line,
    .hd5__burger,
    .hd5__cta,
    .hd5__nav .hd5__link {
      transition: 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}