/* Vaulted Cards UK - Industrial High-Contrast Machine-Scannable Stylesheet */
:root {
  --primary: #0f172a;
  --primary-accent: #1e3a8a;
  --secondary: #2563eb;
  --surface: #ffffff;
  --background: #f8fafc;
  --border: #cbd5e1;
  --border-dark: #64748b;
  --text-main: #0f172a;
  --text-muted: #334155;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --badge-bg: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background);
  line-height: 1.5;
  font-size: 14px;
}

.top-bar {
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 24px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0284c7;
}

.top-bar-left, .top-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.badge-corp {
  background-color: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #475569;
  font-family: monospace;
}

header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-accent);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 2px solid #0f172a;
  letter-spacing: 1px;
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.brand-text p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background-color: #ffffff;
  transition: all 0.15s;
}

nav a:hover, nav a.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.main-content {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
}

.ocr-summary-banner {
  background-color: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ocr-banner-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ocr-banner-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary-accent);
  padding: 16px;
  border-radius: 4px;
}

.kpi-card.success {
  border-top-color: var(--success);
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", monospace;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.data-table-container {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
}

.table-header-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-header-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.table-header-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

table.ocr-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.ocr-table th {
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border);
  border-right: 1px solid #e2e8f0;
}

table.ocr-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid #e2e8f0;
  vertical-align: middle;
  font-size: 13px;
}

table.ocr-table tr:nth-child(even) {
  background-color: #fafbfc;
}

table.ocr-table tr:hover {
  background-color: #f1f5f9;
}

.slab-thumb-wrap {
  width: 76px;
  height: 110px;
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.slab-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grade-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
  font-family: monospace;
  border: 1px solid;
}

.grade-psa10 {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #f87171;
}

.grade-bgs95 {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fcd34d;
}

.tag-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.price-tag {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", monospace;
}

.btn-audit {
  display: inline-block;
  padding: 6px 12px;
  background-color: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-block h4 {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-legal-notice {
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
