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

:root {
  --ground:   #ffffff;
  --text:     #1a1a2e;
  --accent:   #268258;
  --accent-2: #34b072;
  --surface:  #f5f9f7;
  --border:   #d6ece1;
  --muted:    #6b7280;
  --pin-glow: rgba(38, 130, 88, 0.32);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── Nav ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ground);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  height: 100%;
}

.nav-logo img { height: 34px; display: block; }

.nav-doc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-back:hover {
  background: var(--surface);
  border-color: var(--accent);
}

/* ── Hero ──────────────────────────────────────────── */
.doc-hero {
  background: linear-gradient(135deg, #16503a 0%, var(--accent) 55%, var(--accent-2) 100%);
  padding: 64px 32px 72px;
  position: relative;
  overflow: hidden;
}

.doc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.doc-hero-inner {
  position: relative;
  max-width: 620px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255,255,255,0.78);
  max-width: 490px;
  margin-bottom: 28px;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 100px;
  padding: 5px 13px;
}

.hero-chip i { font-size: 11px; opacity: 0.65; }

/* ── Page Grid ─────────────────────────────────────── */
.page-grid {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: 52px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 24px 88px;
  align-items: start;
}

/* ── Sidebar ToC ───────────────────────────────────── */
.toc {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.toc::-webkit-scrollbar { width: 3px; }
.toc::-webkit-scrollbar-track { background: transparent; }
.toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.toc-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.toc-list a:hover {
  background: var(--surface);
  color: var(--text);
}

.toc-list a.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

.toc-n {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  min-width: 16px;
  flex-shrink: 0;
  padding-top: 1px;
}

/* ── Doc Sections ──────────────────────────────────── */
.doc-main { min-width: 0; }

.doc-section {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.doc-section:last-of-type { border-bottom: none; }

/* ── THE RISK: location-pin section markers ─────── */
.pin-col {
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.pin {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 14px var(--pin-glow);
  flex-shrink: 0;
}

.pin-n {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Pin-drop animation */
@media (prefers-reduced-motion: no-preference) {
  .doc-section .pin-col {
    opacity: 0;
    transform: translateY(-26px);
    transition: opacity 0.3s ease,
                transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .doc-section .sec-body {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.32s ease 0.1s,
                transform 0.32s ease 0.1s;
  }
  .doc-section.in-view .pin-col { opacity: 1; transform: translateY(0); }
  .doc-section.in-view .sec-body { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .doc-section .pin-col,
  .doc-section .sec-body { opacity: 1; transform: none; }
}

/* ── Section body ──────────────────────────────────── */
.sec-body { min-width: 0; }

.sec-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.sec-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.sec-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 14px;
}

.sec-body p:last-child { margin-bottom: 0; }

/* Bullet list */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.72;
  color: #374151;
}

.doc-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Subsections */
.subsec {
  background: var(--surface);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  margin-top: 18px;
}

.subsec-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.subsec-n { color: var(--accent); margin-right: 4px; }

.subsec p {
  font-size: 14px !important;
  margin-bottom: 10px !important;
  color: #4b5563 !important;
}

.subsec p:last-child { margin-bottom: 0 !important; }

.subsec .doc-list li { font-size: 14px; color: #4b5563; }

/* Contact card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.c-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  flex-shrink: 0;
}

/* Agreement banner */
.agree-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #16503a, var(--accent));
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 52px;
}

.agree-banner i {
  font-size: 22px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  padding-top: 2px;
}

.agree-banner p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,0.88) !important;
  margin: 0 !important;
}

/* ── Footer ────────────────────────────────────────── */
.doc-footer {
  background: #111827;
  position: relative;
  overflow: hidden;
}

.doc-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 32px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

/* Brand column */
.footer-brand {}

.footer-logo {
  height: 36px;
  display: block;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  max-width: 240px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Links column */
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s;
}

.footer-links-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.footer-links-list a:hover { color: #ffffff; }
.footer-links-list a:hover::before { opacity: 1; }

/* Dev column */
.footer-dev-card {
  background: rgba(38,130,88,0.08);
  border: 1px solid rgba(38,130,88,0.2);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 4px;
}

.footer-dev-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
  display: block;
}

.footer-dev-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
  transition: color 0.15s;
}

.footer-dev-name:hover { color: var(--accent-2); }

.footer-dev-site {
  font-size: 12px;
  color: var(--accent-2);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.footer-dev-site:hover { opacity: 1; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 32px;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  margin: 0;
  text-align: center;
}

.footer-bottom a {
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 24px;
  }
  .footer-bottom { padding: 16px 24px; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 820px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 20px 64px;
  }
  .toc {
    position: static;
    max-height: none;
    background: var(--surface);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 36px;
    border: 1px solid var(--border);
  }
  .doc-section {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 32px 0;
  }
  .pin { width: 34px; height: 34px; }
  .pin-n { font-size: 12px; }
}

@media (max-width: 520px) {
  .site-nav-inner { padding: 0 16px; }
  .nav-doc-label { display: none; }
  .doc-hero { padding: 48px 20px 56px; }
  .doc-section { grid-template-columns: 1fr; }
  .pin-col { display: none; }
  .agree-banner { flex-direction: column; }
}
