/* docs.css — GPS Stakeout Documentation */
:root {
  --navy:   #1a2535;
  --navy2:  #232f42;
  --green:  #3a7d44;
  --orange: #d97706;
  --light:  #f5f5f0;
  --mid:    #6b7280;
  --border: #e2e8f0;
  --sidebar-w: 248px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--light);
  color: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ── */
.topbar {
  background: var(--navy);
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--green);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--green);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.topbar-brand { color: #fff; font-size: 0.92rem; font-weight: 700; }
.topbar-brand span { color: var(--orange); }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: #94a3b8; font-size: 0.8rem; text-decoration: none; }
.topbar-links a:hover { color: #fff; }

/* ── Layout ── */
.layout {
  display: flex;
  flex: 1;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 28px 0;
  position: sticky;
  top: 54px;
  height: calc(100vh - 54px);
  overflow-y: auto;
}
.sidebar-section {
  margin-bottom: 6px;
}
.sidebar-heading {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mid);
  font-weight: 700;
  padding: 10px 20px 6px;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 20px;
  font-size: 0.875rem;
  color: var(--mid);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .12s;
}
.sidebar a:hover { color: var(--navy); background: #f8fafc; }
.sidebar a.active {
  color: var(--green);
  font-weight: 600;
  border-left-color: var(--green);
  background: #f0fdf4;
}
.sidebar a .icon {
  width: 18px; height: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sidebar a .icon svg { width: 14px; height: 14px; }

/* ── Content ── */
.content {
  flex: 1;
  min-width: 0;
  padding: 48px 56px;
  max-width: 820px;
}

.page-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.page-intro {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 620px;
}

/* ── Steps ── */
.steps { margin-top: 36px; }
.step {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
}
.step-num {
  width: 30px; height: 30px;
  background: var(--green);
  border-radius: 50%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.step-body p {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.7;
}
.step-body p + p { margin-top: 8px; }

/* ── Screenshot placeholder ── */
.screenshot {
  margin-top: 16px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 32px 24px;
  text-align: center;
}
.screenshot img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
}
.screenshot .placeholder {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-style: italic;
}
.screenshot .placeholder svg {
  display: block;
  margin: 0 auto 10px;
  width: 32px; height: 32px;
  opacity: .35;
}

/* ── Tip / Note boxes ── */
.tip {
  margin-top: 20px;
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #166534;
  line-height: 1.65;
}
.tip strong { font-weight: 700; }
.note {
  margin-top: 20px;
  background: #fefce8;
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.65;
}

/* ── Section divider ── */
.doc-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.doc-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ── FAQ items ── */
.faq-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.faq-item h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.faq-item p {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 8px;
}
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul { margin-top: 6px; }

/* ── Next / Prev nav ── */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.page-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  min-width: 160px;
  transition: border-color .15s;
}
.page-nav a:hover { border-color: var(--green); }
.page-nav .nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mid); }
.page-nav .nav-title { font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.page-nav .next { text-align: right; margin-left: auto; }

/* ── Data tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.88rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.data-table th {
  background: var(--navy);
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.data-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #f8fafc; }
.data-table .pill {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 0.75rem;
  font-weight: 700;
}
.data-table .val {
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

/* ── Example blocks (deed text, etc.) ── */
.example-block {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.example-block-header {
  background: var(--navy2);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
}
.example-block-body {
  padding: 16px 18px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #334155;
  font-style: italic;
}
.example-block-label {
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mid);
}
.ai-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin-top: 16px;
}
.ai-feature-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.ai-feature-card p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}
.coming-soon {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
}

.pro-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: #64748b;
  font-size: 0.8rem;
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
footer a { color: #94a3b8; text-decoration: none; }
footer a:hover { color: #fff; }

/* ── Mobile menu toggle (hamburger) ── */
.menu-toggle {
  display: none;               /* shown only on mobile via media query */
  background: none;
  border: none;
  padding: 6px;
  margin-right: 2px;
  cursor: pointer;
  color: #fff;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; display: block; }

/* Backdrop behind the open drawer */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 54px 0 0 0;
  background: rgba(15, 23, 42, .45);
  z-index: 90;
  opacity: 0;
  transition: opacity .2s ease;
}
.sidebar-backdrop.show { display: block; opacity: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .content { padding: 28px 20px; }

  /* Sidebar becomes an off-canvas slide-in drawer instead of disappearing */
  .sidebar {
    position: fixed;
    top: 54px;
    left: 0;
    height: calc(100vh - 54px);
    width: min(82vw, 300px);
    z-index: 95;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 2px 0 18px rgba(0, 0, 0, .18);
    display: block;
  }
  .sidebar.open { transform: translateX(0); }
}
