/* Nexus load board — builds on styles.css palette (graphite + gold). */
nav.links a.active { color: var(--gold-2); font-weight: 700; }
.sr { position: absolute; left: -9999px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.board-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 44px 0 8px; flex-wrap: wrap;
}
.board-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; display: flex; align-items: center; gap: 12px; }
.live-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #58c472; display: inline-block;
  box-shadow: 0 0 0 0 rgba(88,196,114,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(88,196,114,.55); }
  70% { box-shadow: 0 0 0 9px rgba(88,196,114,0); }
  100% { box-shadow: 0 0 0 0 rgba(88,196,114,0); }
}
.board-sub { color: var(--muted); max-width: 720px; margin-top: 8px; }
.board-sub strong { color: var(--text); }
.count-pill {
  display: inline-block; margin-left: 8px; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--gold-2); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 700; white-space: nowrap;
}

/* Sticky filter bar */
.filterbar {
  position: sticky; top: 65px; z-index: 9; margin-top: 22px;
  background: rgba(23,24,28,.97); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; backdrop-filter: blur(6px);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  background: var(--bg-3); color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .12s ease;
}
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip.on { background: var(--gold); color: #161616; border-color: var(--gold); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-row label { flex: 0 1 auto; }
.filter-row .f-search { flex: 1 1 220px; }
.filter-row input, .filter-row select { padding: 9px 11px; font-size: .93rem; }
.btn-ghost {
  background: transparent; color: var(--gold-2); border: 1px solid var(--gold); border-radius: 10px;
  padding: 9px 16px; font-weight: 700; cursor: pointer; font-size: .93rem;
}
.btn-ghost:hover { background: rgba(201,162,39,.12); }
.btn-ghost.on { background: var(--gold); color: #161616; }

/* Listing rows */
.board-list { margin: 20px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.board-loading, .board-empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 42px 24px;
  text-align: center; color: var(--muted);
}
.board-empty strong { color: var(--text); display: block; font-size: 1.1rem; margin-bottom: 6px; }
.load-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.load-row:hover { border-color: #4a4d57; transform: translateY(-1px); }
.load-row.fresh { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 30px rgba(201,162,39,.12); }
.cat-badge {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .92rem; letter-spacing: .04em; color: #161616; background: var(--gold);
}
.cat-badge.c1 { background: #e3bc45; } .cat-badge.c2 { background: #b8c45a; }
.cat-badge.c3 { background: #7fb2c9; } .cat-badge.c4 { background: #6fc7bd; }
.cat-badge.c5 { background: #d99a4e; } .cat-badge.c6 { background: #c97b5a; }
.cat-badge.c7 { background: #b48ec9; } .cat-badge.c8 { background: #c95a7d; }
.load-main h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 5px; }
.load-main h3 .new-tag {
  background: var(--gold); color: #161616; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  border-radius: 5px; padding: 2px 7px; vertical-align: 3px; margin-left: 8px; text-transform: uppercase;
}
.route { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.route .arrow { color: var(--gold); padding: 0 4px; }
.route .mi { color: var(--muted); font-weight: 600; font-size: .9rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; }
.meta b { color: var(--text); font-weight: 600; }
.items { color: var(--muted); font-size: .92rem; margin-top: 7px; }
.desc { color: var(--muted); font-size: .92rem; margin-top: 5px; }
.load-side { text-align: right; min-width: 132px; }
.budget { font-size: 1.28rem; font-weight: 800; color: var(--gold-2); white-space: nowrap; }
.budget small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.bidcount { color: var(--muted); font-size: .88rem; margin: 7px 0 10px; }
.bidcount b { color: var(--text); }
.btn-bid {
  background: var(--gold); color: #161616; border: none; border-radius: 9px; cursor: pointer;
  font-weight: 800; font-size: .93rem; padding: 10px 18px; width: 100%;
}
.btn-bid:hover { background: var(--gold-2); }
.posted { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.near { color: #58c472; font-weight: 700; }

/* Bid modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,6,8,.72); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  max-width: 640px; width: 100%; position: relative;
}
.modal h2 { font-size: 1.4rem; margin-bottom: 4px; }
.modal-route { color: var(--gold-2); font-weight: 700; margin-bottom: 18px; }
.modal-x {
  position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--muted);
  font-size: 1.7rem; cursor: pointer; line-height: 1;
}
.modal-x:hover { color: var(--text); }
.bid-error { color: #e88; margin-top: 12px; font-size: .93rem; }
.bid-success {
  background: #14230f; border: 1px solid #35521f; color: #cfe6b8;
  border-radius: 10px; padding: 16px 18px; margin-top: 6px; font-size: .97rem;
}

@media (max-width: 760px) {
  .filterbar { top: 57px; }
  .load-row { grid-template-columns: 44px 1fr; }
  .cat-badge { width: 44px; height: 44px; font-size: .8rem; }
  .load-side { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .btn-bid { width: auto; flex: 1; }
  .bidcount { margin: 0; }
  .posted { margin-top: 0; }
}
