﻿
/* ═══ THE VEHICLE DOCUMENT READER + FLEET EXPLORER ═══ */
body { background: #0a0c10; }
#vehicle-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.vdoc-header {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 22px;
  background: color-mix(in srgb, #0a0c10 88%, transparent);
  border-bottom: 1px solid rgba(212, 168, 67, .3);
  backdrop-filter: blur(10px);
}
.doc-back { color: #d4a843; text-decoration: none; font-size: 13px; }
.doc-back:hover { text-decoration: underline; }
.doc-header-center { display: flex; gap: 12px; align-items: baseline; }
.doc-cat-chip { font-size: 11px; letter-spacing: .22em; color: #d4a843; }
.doc-number { font-size: 12px; color: #8a8577; }
.doc-tts-btn {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #d4a843;
  border: 1px solid #d4a843; font-size: 12.5px; font-weight: 600;
}
.doc-tts-btn[aria-pressed="true"] { background: #d4a843; color: #0a0c10; }
.doc-stage { position: relative; z-index: 1; min-height: 100vh; padding: 26px 18px 120px; }
.vdoc-parchment {
  position: relative; width: min(880px, 94vw); margin: 0 auto;
  background: #101318; border: 1px solid rgba(212, 168, 67, .3);
  border-radius: 6px; padding: clamp(26px, 5vw, 56px);
  color: #e8e2d4; box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.vdoc-blueprint {
  position: absolute; inset: 0; pointer-events: none; opacity: .5; border-radius: 6px;
  background-image:
    linear-gradient(rgba(212,168,67,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.doc-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 5vw, 50px); margin: 0 0 14px; }
.doc-meta { margin-bottom: 26px; }
.doc-meta-chip { display: inline-block; margin: 0 8px 6px 0; padding: 4px 10px; font-size: 11px; border: 1px solid rgba(212,168,67,.4); border-radius: 999px; }
.doc-body { font-size: 16px; line-height: 1.75; position: relative; }
.doc-body h1, .doc-body h2, .doc-body h3 { font-family: 'Cormorant Garamond', serif; color: #d4a843; margin: 1.5em 0 .5em; }
.doc-body pre { overflow-x: auto; background: rgba(0,0,0,.35); padding: 14px; border-radius: 8px;
  /* ASCII build diagrams — wiring/circuit/mechanical box art lives in fenced
     code blocks. These MUST be monospace with tight line-height and NO wrap,
     or the box-drawing characters misalign and the diagrams fall apart. */
  font-family: 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
  font-size: .82rem; line-height: 1.3; white-space: pre;
  border: 1px solid rgba(212,168,67,.22); }
.doc-body pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .9em; }
.doc-body th, .doc-body td { border: 1px solid rgba(255,255,255,.14); padding: 6px 10px; text-align: left; }
.doc-body th { color: #d4a843; }
.doc-body code { background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 4px; }
.vdoc-files { margin-top: 44px; padding-top: 20px; border-top: 1px dashed rgba(212,168,67,.3); }
.vdoc-files h3 { margin: 0 0 10px; color: #d4a843; }
.vdoc-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.vdoc-file-link {
  padding: 7px 12px; font-size: 12px; color: #b8b2a4; text-decoration: none;
  border: 1px solid rgba(212,168,67,.3); border-radius: 999px;
}
.vdoc-file-link:hover, .vdoc-file-link.active {
  color: #0a0c10; background: #d4a843; border-color: #d4a843;
}
.vdoc-github { color: #8a8577; font-size: 12.5px; }
.vdoc-github:hover { color: #d4a843; }
.laws-loading { color: #b8b2a4; }
.laws-empty { color: #b8b2a4; padding: 20px 0; }

/* fleet explorer */
.fleet-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 24px; }
.fleet-stats .hub-stat { background: #0a0a18; border: 1px solid rgba(212,168,67,.24); border-radius: 12px; padding: 14px 20px; min-width: 150px; }
.fleet-master-docs { margin: 0 0 26px; }
.fleet-master-docs h3 { color: #d4a843; margin: 0 0 10px; }
.fleet-master-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fleet-doc-link {
  padding: 8px 14px; font-size: 12.5px; color: #b8b2a4; text-decoration: none;
  border: 1px solid rgba(212,168,67,.3); border-radius: 999px;
}
.fleet-doc-link:hover { color: #0a0c10; background: #d4a843; border-color: #d4a843; }
.fleet-github { display: inline-block; margin-top: 12px; color: #8a8577; font-size: 12.5px; }
.fleet-github:hover { color: #d4a843; }
.fleet-cat { color: #d4a843; margin: 28px 0 12px; letter-spacing: .18em; font-size: 13px; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fleet-card { background: #0a0a18; border: 1px solid rgba(212,168,67,.22); border-radius: 14px; padding: 20px 22px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.fleet-card:hover { transform: translateY(-4px); border-color: rgba(212,168,67,.6); box-shadow: 0 12px 36px rgba(212,168,67,.1); }
.fleet-card h3 { margin: 0 0 8px; font-size: 17px; color: #e8e2d4; }
.fleet-meta { display: flex; gap: 14px; font-size: 12px; color: #8a8577; margin-bottom: 12px; }
.fleet-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fleet-btn { padding: 8px 14px; border-radius: 999px; background: #d4a843; color: #06060f; text-decoration: none; font-size: 12px; font-weight: 700; }
.fleet-btn:hover { background: #e6bc59; }
.fleet-ghost { background: transparent; color: #d4a843; border: 1px solid rgba(212,168,67,.4); font-weight: 400; }
.fleet-ghost:hover { border-color: #d4a843; color: #d4a843; background: transparent; }
.fleet-github-mini { color: #8a8577; font-size: 12px; text-decoration: none; }
.fleet-github-mini:hover { color: #d4a843; }


/* the reading progress — a live readout (vehicle-doc.html loads THIS
   file, not legal-doc.css where the generic rule lives) */
.doc-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
  background: rgba(255, 255, 255, 0.06);
}
.doc-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #d4a843, #fff8e8);
  box-shadow: 0 0 10px #d4a843;
  transition: width .2s ease-out;
}
