/* =========================================================
   LiftOff Documentation — styles.css
   Pivoten, Inc.
   ========================================================= */

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

:root {
  --nav-w: 252px;
  --hdr-h: 56px;

  --c-brand:       #2563eb;
  --c-brand-dark:  #1e3a5f;
  --c-brand-light: #eff6ff;
  --c-brand-mid:   #dbeafe;

  --c-text:     #1e293b;
  --c-text-2:   #475569;
  --c-text-3:   #94a3b8;

  --c-bg:      #ffffff;
  --c-surface: #f8fafc;
  --c-border:  #e2e8f0;
  --c-code:    #f1f5f9;

  --c-nav-hover:  #f0f4ff;
  --c-nav-active: #1d4ed8;

  --font:      system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;

  --radius: 6px;
}

/* ---- Reset ---- */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--hdr-h);
  background: var(--c-brand-dark);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0.875rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 2px 10px rgba(0,0,0,0.3);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.header-brand:hover { text-decoration: none; }

.brand-name { color: #fff; }

.brand-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 2px 7px;
  border-radius: 20px;
}

.hdr-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
}

.hdr-product {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

.hdr-spacer { flex: 1; }

.hdr-version {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  display: flex;
  padding-top: var(--hdr-h);
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */
.sidebar {
  width: var(--nav-w);
  flex-shrink: 0;
  position: fixed;
  top: var(--hdr-h);
  bottom: 0;
  left: 0;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
  padding: 1.5rem 0 2rem;
}

.nav-section {
  margin-bottom: 0.125rem;
}

.nav-group-label {
  display: block;
  padding: 0.75rem 1.25rem 0.3rem;
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-3);
  user-select: none;
}

.nav-item {
  display: block;
  padding: 0.425rem 1.25rem;
  font-size: 0.875rem;
  color: var(--c-text-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.1s, color 0.1s;
}

.nav-item:hover {
  background: var(--c-nav-hover);
  color: var(--c-text);
  text-decoration: none;
}

.nav-item.active {
  background: var(--c-brand-light);
  color: var(--c-nav-active);
  border-left-color: var(--c-brand);
  font-weight: 600;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  margin-left: var(--nav-w);
  flex: 1;
  padding: 2.5rem 3rem 5rem;
}

.content-wrap {
  max-width: 720px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
}

.page-badge {
  display: inline-block;
  background: var(--c-brand-mid);
  color: var(--c-nav-active);
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 0.625rem;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-lead {
  font-size: 1.0625rem;
  color: var(--c-text-2);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   PROSE TYPOGRAPHY
   ============================================================ */
h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }

p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.25rem; }

strong { font-weight: 700; }

code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--c-code);
  padding: 0.12em 0.4em;
  border-radius: 3px;
}

/* ============================================================
   STEPS (numbered how-it-works list)
   ============================================================ */
.steps {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--c-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 3px;
}

.step-body { flex: 1; }
.step-body b { display: block; margin-bottom: 0.15rem; }

/* ============================================================
   CALLOUTS
   ============================================================ */
.callout {
  border-left: 3px solid;
  padding: 0.875rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.callout > p:last-child { margin-bottom: 0; }

.callout-label {
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.3rem;
}

.callout-note {
  background: #eff6ff;
  border-color: #3b82f6;
}
.callout-note .callout-label { color: #1d4ed8; }

.callout-warn {
  background: #fffbeb;
  border-color: #f59e0b;
}
.callout-warn .callout-label { color: #92400e; }

.callout-tip {
  background: #f0fdf4;
  border-color: #22c55e;
}
.callout-tip .callout-label { color: #166534; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: var(--c-surface);
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }

/* ---- Badges in tables ---- */
.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.675rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-yes  { background: #dcfce7; color: #166534; }
.badge-no   { background: #fee2e2; color: #991b1b; }
.badge-full { background: #dbeafe; color: #1e40af; }

/* ============================================================
   REQUIREMENT CARDS
   ============================================================ */
.req-grid {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.req-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.req-card-head {
  background: var(--c-surface);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.req-card-body {
  padding: 0.875rem 1rem;
}

.req-card-body p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.req-card-body p:last-child { margin-bottom: 0; }

.req-card-body ul {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.req-card-body li { margin-bottom: 0.2rem; }

/* ============================================================
   SYSTEM CHECK TABLE
   ============================================================ */
.check-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   TROUBLESHOOTING ITEMS
   ============================================================ */
.trouble-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.trouble-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.trouble-q {
  background: var(--c-surface);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #991b1b;
}

.trouble-a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--c-text-2);
  line-height: 1.65;
}

.trouble-a p { margin-bottom: 0; }

/* ============================================================
   DATA COVERAGE — coverage-row distinction
   ============================================================ */
.coverage-note {
  font-size: 0.8125rem;
  color: var(--c-text-2);
  font-style: italic;
  margin-bottom: 0;
}

/* ============================================================
   SCREENSHOTS / FIGURES
   ============================================================ */
.screenshot {
  margin: 1.75rem 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot figcaption {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 0.45rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--c-text-2);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.8rem;
  color: var(--c-text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--c-text-3);
  font-size: 0.8rem;
}

.footer-links a:hover { color: var(--c-brand); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .layout { flex-direction: column; }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
  }

  .nav-section {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
  }

  .nav-group-label { display: none; }

  .nav-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .nav-item.active {
    border-bottom-color: var(--c-brand);
    background: transparent;
  }

  .main {
    margin-left: 0;
    padding: 1.75rem 1.25rem 3rem;
  }

  .page-title { font-size: 1.5rem; }
}
