/* GBCO Portal — shared styles */
:root {
  --bg: #0a0b0d;
  --surface: #12141a;
  --surface-2: #1a1d26;
  --border: #262a35;
  --text: #e8e9ec;
  --text-dim: #9ba0ac;
  --text-faint: #6b7080;
  --gold: #d4af37;
  --gold-dim: #a8871f;
  --accent: #d4af37;
  --danger: #e05252;
  --success: #4ecca3;
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
}
.brand-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand-mark {
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-sub {
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}
.topnav {
  display: flex;
  gap: 20px;
}
.topnav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.library-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  flex: 1;
  width: 100%;
}
.library-head { margin-bottom: 24px; }
.library-head h1 { font-size: 32px; margin-bottom: 8px; }
.lede { color: var(--text-dim); font-size: 15px; }

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.filter-bar input,
.filter-bar select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
}
.filter-bar input {
  flex: 1;
  min-width: 240px;
}
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--gold);
}

.stats {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artifact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.artifact-row:hover {
  border-color: var(--gold-dim);
  background: var(--surface-2);
}
.a-icon {
  font-size: 24px;
  min-width: 32px;
  text-align: center;
}
.a-body { flex: 1; min-width: 0; }
.a-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.a-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a-meta {
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.a-project { color: var(--gold-dim); font-weight: 500; }
.a-dot { color: var(--text-faint); opacity: 0.5; }
.a-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.a-arrow {
  color: var(--text-faint);
  font-size: 18px;
  transition: color .15s, transform .15s;
}
.artifact-row:hover .a-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.err {
  padding: 20px;
  color: var(--danger);
  background: var(--surface);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
}

.site-footer {
  text-align: center;
  padding: 24px 32px;
  color: var(--text-faint);
  font-size: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer .v { margin-top: 4px; font-size: 11px; opacity: 0.6; }
