/* ═══════════════════════════════════════════════════════════════════
   DOCUMENTS — Print-friendly styles for Blackbridge contract docs
   White background, black text, gold accents. Print-safe.
═══════════════════════════════════════════════════════════════════ */

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

body {
  font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #0A0A0A;
  font-size: 14px;
  line-height: 1.6;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.doc-nav {
  background: #0A0A0A;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #C9A84C;
}

.doc-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #F0EEE6;
}

.doc-nav-logo {
  width: 32px;
  height: 32px;
}

.doc-nav-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #F0EEE6;
}

.doc-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.doc-nav-links a {
  color: #C9A84C;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.doc-nav-links a:hover { color: #F0EEE6; }

.doc-actions {
  display: flex;
  gap: 10px;
}

.btn-print {
  background: #C9A84C;
  color: #0A0A0A;
  border: none;
  padding: 7px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-print:hover { background: #D4B85A; }

.btn-back {
  background: transparent;
  color: #C9A84C;
  border: 1px solid #C9A84C;
  padding: 6px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-back:hover { background: rgba(201,168,76,0.1); }

/* ─── DOCUMENT WRAPPER ─────────────────────────────────────────── */

.doc-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 48px 56px 64px;
}

.doc-header {
  border-bottom: 2px solid #0A0A0A;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.doc-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.doc-logo-svg { width: 56px; height: 56px; }

.doc-company-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0A0A0A;
  text-transform: uppercase;
}

.doc-company-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #555;
  text-transform: uppercase;
  margin-top: 2px;
}

.doc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #C9A84C;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.doc-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.doc-meta strong { color: #0A0A0A; }

/* ─── SECTION HEADINGS ───────────────────────────────────────────── */

.doc-section {
  margin-bottom: 28px;
}

.doc-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
  border-bottom: 1px solid #C9A84C;
  padding-bottom: 5px;
  margin-bottom: 12px;
}

.doc-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0A0A0A;
  margin-bottom: 8px;
}

/* ─── LISTS ─────────────────────────────────────────────────────── */

.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  padding: 4px 0 4px 18px;
  position: relative;
}

.doc-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #C9A84C;
  font-weight: 700;
}

/* ─── TABLES ────────────────────────────────────────────────────── */

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.doc-table th {
  background: #0A0A0A;
  color: #C9A84C;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid #C9A84C;
}

.doc-table td {
  padding: 7px 10px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.doc-table tr:nth-child(even) td { background: #F9F9F7; }

.doc-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }

/* ─── FIELDS / LABEL-VALUE ──────────────────────────────────────── */

.doc-field {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
  margin-bottom: 4px;
}

.doc-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  width: 160px;
  flex-shrink: 0;
  padding-top: 2px;
}

.doc-field-value {
  font-size: 14px;
  color: #0A0A0A;
  flex: 1;
}

/* ─── SIGNATURE BLOCKS ───────────────────────────────────────────── */

.doc-sig-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.doc-sig-block {
  flex: 1;
  border-top: 1px solid #0A0A0A;
  padding-top: 8px;
  min-width: 0;
}

.doc-sig-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ─── NOTES / FOOTER ────────────────────────────────────────────── */

.doc-note {
  background: #F9F9F7;
  border-left: 3px solid #C9A84C;
  padding: 10px 14px;
  font-size: 12px;
  color: #444;
  margin-bottom: 20px;
}

.doc-footer {
  border-top: 1px solid #ddd;
  margin-top: 48px;
  padding-top: 16px;
  font-size: 11px;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── DOCUMENT INDEX PAGE ──────────────────────────────────────── */

.doc-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.doc-card {
  border: 1px solid #ddd;
  padding: 24px;
  text-decoration: none;
  color: #0A0A0A;
  transition: all 0.2s;
  position: relative;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #C9A84C;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.doc-card:hover::before { transform: scaleX(1); }
.doc-card:hover { border-color: #C9A84C; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.doc-card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #C9A84C;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.doc-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0A0A0A;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.doc-card-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* ─── CHECKBOXES ────────────────────────────────────────────────── */

.doc-checkbox-row {
  display: flex;
  gap: 32px;
  margin: 12px 0;
  font-size: 13px;
}

.doc-checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #0A0A0A;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ─── PRINT UTILITIES ───────────────────────────────────────────── */

.print-only { display: none; }

@page {
  size: letter;
  margin: 0.75in;
}

@media print {
  .doc-nav { display: none; }
  .doc-actions { display: none; }
  .doc-container { padding: 0; max-width: 100%; }
  body { font-size: 12px; color: #000; background: #fff; }
  .doc-table th { background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-table tr:nth-child(even) td { background: #f5f5f5 !important; }
  .print-only { display: block; }
}

/* ─── STATUS BADGE ─────────────────────────────────────────────── */

.doc-status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
}

.doc-status.cleared   { background: #E6F4EA; color: #1B6B30; border: 1px solid #A8D5B5; }
.doc-status.pending   { background: #FFF3E0; color: #B45F00; border: 1px solid #F5C87A; }
.doc-status.expired   { background: #FDECEA; color: #B71C1C; border: 1px solid #F4A0A0; }
.doc-status.rejected   { background: #FDECEA; color: #B71C1C; border: 1px solid #F4A0A0; }