:root {
      --bg-primary:    #111827;
      --bg-secondary:  #1f2937;
      --bg-card:       #1a2332;
      --accent:        #3b82f6;
      --accent-hover:  #2563eb;
      --text-primary:  #f9fafb;
      --text-secondary:#9ca3af;
      --text-muted:    #6b7280;
      --border-color:  #374151;
      --green:         #22c55e;
      --gold:          #f59e0b;
      --red:           #ef4444;
      --radius:        0.75rem;
    }
    *, *::before, *::after { box-sizing: border-box; }
    body {
      background-color: var(--bg-primary);
      color: var(--text-primary);
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      line-height: 1.75;
    }

    /* ── NAVBAR ── */
    .navbar {
      background-color: #0d1420;
      border-bottom: 1px solid var(--border-color);
      padding: 0.75rem 0;
    }
    .navbar-brand img {
      height: 38px;
      width: auto;
      max-width: calc(100vw - 108px);
      object-fit: contain;
    }
    .navbar-toggler {
      border-color: var(--border-color);
      flex-shrink: 0;
    }
    .navbar-toggler-icon { filter: invert(1); }
    .navbar-nav .nav-link {
      color: var(--text-secondary);
      font-size: 0.875rem;
      font-weight: 500;
      padding: 0.5rem 0.75rem;
      transition: color 0.2s;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active { color: var(--accent); }

    /* ── BUTTONS ── */
    .btn-accent {
      background-color: var(--accent);
      color: #fff;
      border: none;
      border-radius: 0.5rem;
      padding: 0.65rem 1.5rem;
      font-weight: 600;
      font-size: 0.95rem;
      text-decoration: none;
      transition: background-color 0.2s, transform 0.15s;
      display: inline-block;
    }
    .btn-accent:hover {
      background-color: var(--accent-hover);
      color: #fff;
      transform: translateY(-1px);
    }
    .btn-outline-accent {
      background: transparent;
      color: var(--accent);
      border: 1.5px solid var(--accent);
      border-radius: 0.5rem;
      padding: 0.65rem 1.5rem;
      font-weight: 600;
      font-size: 0.95rem;
      text-decoration: none;
      transition: background-color 0.2s, color 0.2s;
      display: inline-block;
    }
    .btn-outline-accent:hover {
      background-color: var(--accent);
      color: #fff;
    }
    .btn-outline-light-custom {
      background: transparent;
      color: var(--text-primary);
      border: 1.5px solid var(--border-color);
      border-radius: 0.5rem;
      padding: 0.65rem 1.5rem;
      font-weight: 600;
      font-size: 0.95rem;
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s;
      display: inline-block;
    }
    .btn-outline-light-custom:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    /* ── BREADCRUMB ── */
    .breadcrumb-wrap {
      background-color: var(--bg-secondary);
      padding: 0.75rem 0;
      border-bottom: 1px solid var(--border-color);
    }
    .breadcrumb { margin-bottom: 0; background: transparent; }
    .breadcrumb-item a {
      color: var(--accent);
      text-decoration: none;
      font-size: 0.85rem;
    }
    .breadcrumb-item.active {
      color: var(--text-secondary);
      font-size: 0.85rem;
    }
    .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

    /* ── HERO ── */
    .hero-section {
      background: linear-gradient(135deg, #0d1420 0%, #0d1f2e 60%, #0a1a20 100%);
      padding: 4rem 0 3.5rem;
      border-bottom: 1px solid var(--border-color);
      position: relative;
      overflow: hidden;
    }
    .hero-section::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 360px; height: 360px;
      background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(34,197,94,0.1);
      color: var(--green);
      border: 1px solid rgba(34,197,94,0.25);
      border-radius: 999px;
      padding: 0.3rem 0.9rem;
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 1.25rem;
    }
    .hero-section h1 {
      font-size: clamp(1.75rem, 4vw, 2.5rem);
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.25;
      margin-bottom: 1.1rem;
    }
    .hero-section h1 span { color: var(--green); }
    .hero-section .lead {
      color: var(--text-secondary);
      font-size: 1rem;
      max-width: 620px;
      line-height: 1.8;
    }
    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-top: 1.5rem;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border-color);
      border-radius: 0.4rem;
      padding: 0.35rem 0.85rem;
      font-size: 0.8rem;
      color: var(--text-secondary);
    }
    .hero-badge i { color: var(--green); }

    /* ── TOC ── */
    .toc-card {
      background-color: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.5rem;
      position: sticky;
      top: 72px;
    }
    .toc-card h3 {
      font-size: 0.85rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
    .toc-list { list-style: none; padding: 0; margin: 0; }
    .toc-list li { margin-bottom: 0.4rem; }
    .toc-list a {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.85rem;
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      transition: color 0.2s;
      line-height: 1.5;
    }
    .toc-list a:hover { color: var(--accent); }
    .toc-num {
      color: var(--accent);
      font-size: 0.75rem;
      font-weight: 700;
      flex-shrink: 0;
      min-width: 1.4rem;
      margin-top: 0.1rem;
    }

    /* ── BODY TEXT ── */
    .body-text { color: var(--text-secondary); line-height: 1.85; }
    .body-text h2 {
      color: var(--text-primary);
      font-size: 1.25rem;
      font-weight: 700;
      margin-top: 2.75rem;
      margin-bottom: 0.85rem;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border-color);
    }
    .body-text h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
    .body-text h3 {
      color: var(--text-primary);
      font-size: 1rem;
      font-weight: 600;
      margin-top: 1.5rem;
      margin-bottom: 0.5rem;
    }
    .body-text p  { margin-bottom: 1rem; }
    .body-text strong { color: var(--text-primary); }
    .body-text ul, .body-text ol {
      color: var(--text-secondary);
      padding-left: 1.4rem;
      margin-bottom: 1rem;
    }
    .body-text ul li, .body-text ol li { margin-bottom: 0.45rem; }
    .body-text a { color: var(--accent); text-decoration: none; }
    .body-text a:hover { text-decoration: underline; }
    .section-anchor { scroll-margin-top: 80px; }

    /* ── FEATURE CARDS ── */
    .feature-card {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.5rem;
      transition: border-color 0.2s, transform 0.2s;
    }
    .feature-card:hover {
      border-color: rgba(34,197,94,0.35);
      transform: translateY(-2px);
    }
    .feature-icon {
      width: 48px;
      height: 48px;
      border-radius: 0.6rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      margin-bottom: 1rem;
    }
    .icon-blue   { background: rgba(59,130,246,0.12); color: var(--accent); }
    .icon-green  { background: rgba(34,197,94,0.12);  color: var(--green); }
    .icon-gold   { background: rgba(245,158,11,0.12); color: var(--gold); }
    .icon-purple { background: rgba(167,139,250,0.12);color: #a78bfa; }
    .icon-red    { background: rgba(239,68,68,0.12);  color: var(--red); }
    .icon-cyan   { background: rgba(34,211,238,0.12); color: #22d3ee; }
    .feature-card h3 {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.4rem;
    }
    .feature-card p {
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-bottom: 0;
      line-height: 1.65;
    }

    /* ── INFO BOXES ── */
    .info-box {
      background: linear-gradient(135deg, rgba(59,130,246,0.07), rgba(59,130,246,0.03));
      border: 1px solid rgba(59,130,246,0.25);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
    }
    .info-box p { margin-bottom: 0; color: var(--text-secondary); font-size: 0.9rem; }
    .warning-box {
      background: rgba(245,158,11,0.07);
      border: 1px solid rgba(245,158,11,0.25);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
    }
    .warning-box p { margin-bottom: 0; color: #d4a04a; font-size: 0.9rem; }
    .success-box {
      background: rgba(34,197,94,0.07);
      border: 1px solid rgba(34,197,94,0.25);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
    }
    .success-box p { margin-bottom: 0; color: #86efac; font-size: 0.9rem; }
    .danger-box {
      background: rgba(239,68,68,0.07);
      border: 1px solid rgba(239,68,68,0.25);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
    }
    .danger-box p { margin-bottom: 0; color: #fca5a5; font-size: 0.9rem; }

    /* ── TOOLS SECTION ── */
    .tool-card {
      background-color: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.5rem;
    }
    .tool-card .tool-num {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(59,130,246,0.15);
      color: var(--accent);
      font-size: 0.85rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .tool-card h4 {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.3rem;
    }
    .tool-card p {
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-bottom: 0;
      line-height: 1.65;
    }

    /* ── QUIZ / SELF-CHECK ── */
    .quiz-card {
      background-color: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      display: flex;
      align-items: flex-start;
      gap: 1rem;
    }
    .quiz-icon {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(245,158,11,0.12);
      color: var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      flex-shrink: 0;
      margin-top: 0.1rem;
    }
    .quiz-card p {
      font-size: 0.875rem;
      color: var(--text-secondary);
      margin-bottom: 0;
      line-height: 1.6;
    }

    /* ── FAQ ACCORDION ── */
    .accordion-item {
      background-color: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius) !important;
      margin-bottom: 0.5rem;
      overflow: hidden;
    }
    .accordion-button {
      background-color: var(--bg-secondary);
      color: var(--text-primary);
      font-weight: 600;
      font-size: 0.925rem;
      border: none;
      box-shadow: none;
    }
    .accordion-button:not(.collapsed) {
      background-color: #263447;
      color: var(--accent);
      box-shadow: none;
    }
    .accordion-button::after { filter: invert(1) brightness(0.7); }
    .accordion-button:not(.collapsed)::after { filter: invert(0.5) sepia(1) saturate(5) hue-rotate(190deg); }
    .accordion-body {
      background-color: #1a2332;
      color: var(--text-secondary);
      font-size: 0.875rem;
      line-height: 1.75;
      padding: 1rem 1.25rem;
    }

    /* ── SECTION TITLES ── */
    .section-title {
      font-size: clamp(1.3rem, 3vw, 1.6rem);
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.5rem;
    }
    .section-title span { color: var(--green); }
    .section-subtitle {
      color: var(--text-secondary);
      font-size: 0.95rem;
      margin-bottom: 2.25rem;
    }

    /* ── CTA BANNER ── */
    .cta-banner {
      background: linear-gradient(135deg, #0f2a1a 0%, #0d1f15 50%, #0a1a10 100%);
      border: 1px solid rgba(34,197,94,0.25);
      border-radius: var(--radius);
      padding: 3rem 2rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .cta-banner::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 240px; height: 240px;
      background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
      pointer-events: none;
    }
    .cta-banner h2 {
      font-size: clamp(1.25rem, 3vw, 1.65rem);
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.75rem;
    }
    .cta-banner p {
      color: var(--text-secondary);
      font-size: 0.95rem;
      margin-bottom: 1.75rem;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
    }

    /* ── QUICK PILLS ── */
    .quick-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background-color: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 999px;
      padding: 0.35rem 0.9rem;
      font-size: 0.8rem;
      color: var(--text-secondary);
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s;
      margin: 0.2rem;
    }
    .quick-pill:hover { border-color: var(--accent); color: var(--accent); }
    .quick-pill i { font-size: 0.8rem; color: var(--accent); }

    /* ── FOOTER ── */
    footer {
      background-color: #0d1420;
      border-top: 1px solid var(--border-color);
      padding: 3rem 0 1.5rem;
    }
    .footer-logo img {
      height: 36px;
      width: auto;
      object-fit: contain;
    }
    .footer-desc {
      color: var(--text-muted);
      font-size: 0.85rem;
      margin-top: 0.75rem;
      max-width: 280px;
    }
    .footer-heading {
      color: var(--text-primary);
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 1rem;
    }
    .footer-links-col { list-style: none; padding: 0; margin: 0; }
    .footer-links-col li { margin-bottom: 0.5rem; }
    .footer-links-col a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.875rem;
      transition: color 0.2s;
    }
    .footer-links-col a:hover { color: var(--accent); }
    .footer-bottom {
      border-top: 1px solid var(--border-color);
      margin-top: 2rem;
      padding-top: 1.25rem;
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    .footer-email { color: var(--text-muted); font-size: 0.875rem; }
    .footer-email .bi { color: var(--accent); margin-right: 0.35rem; }

    /* ── RESPONSIVE ── */
    @media (max-width: 991px) {
      .toc-card { position: static; }
    }
    @media (max-width: 576px) {
      .hero-section { padding: 2.75rem 0 2.25rem; }
      .navbar-brand img { height: 30px; max-width: calc(100vw - 108px); }
      .cta-banner { padding: 2rem 1.25rem; }
    }

/* BR V1.2 mobile logo and Bootstrap collapse protection. */
.navbar > .container,
.navbar > .container-fluid {
  flex-wrap: wrap !important;
  min-width: 0;
}
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: auto !important;
  flex: 0 1 auto !important;
  max-width: calc(100% - 64px) !important;
  margin-right: 8px !important;
  white-space: nowrap;
}
.navbar-brand img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(260px, 100%) !important;
  max-height: 44px !important;
  object-fit: contain !important;
}
.navbar-toggler {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  white-space: nowrap;
}
@media (max-width: 576px) {
  .navbar > .container,
  .navbar > .container-fluid {
    flex-wrap: wrap !important;
    min-width: 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .navbar-brand {
    flex: 0 1 auto !important;
    max-width: calc(100vw - 108px) !important;
    margin-right: 8px !important;
    min-width: 0 !important;
  }
  .navbar-brand img {
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 108px) !important;
    max-height: 42px !important;
    object-fit: contain !important;
  }
  .navbar > .container > .navbar-collapse,
  .navbar > .container-fluid > .navbar-collapse {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}


/* site-footer-logo-color-safeguard: keep generated footer logos in original colors */
footer .footer-brand img,
footer .footer-logo img,
footer img[src*="logo" i],
footer img[alt*="logo" i],
footer img[class*="brand-logo" i],
footer img[class*="footer-logo" i] {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(180px, 100%) !important;
  max-height: 44px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}
