/* MONARCH TCG ARCHIVE UK - Commercial Audit & Machine-Readable Registry */
:root {
  --primary: #4c1d95;
  --dark: #2e1065;
  --accent: #7c3aed;
  --accent-bg: #f5f3ff;
  --tag-badge: #059669;
  --border-strong: #334155;
  --border-grid: #94a3b8;
  --bg-head: #f1f5f9;
  --bg-stripe: #f8fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000000;
  background: #ffffff;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary);
  padding: 12px 24px;
}
.header-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-box {
  background: var(--primary);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 2px solid #000000;
}
.brand-name-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.brand-tagline {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 仅保留核心3网页导航 */
.core-nav-bar {
  display: flex;
  gap: 8px;
}
.core-nav-link {
  text-decoration: none;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border: 2px solid var(--primary);
  background: #f8fafc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.core-nav-link.active, .core-nav-link:hover {
  background: var(--primary);
  color: #ffffff;
}

.entity-info-card {
  border: 1px solid var(--primary);
  background: var(--accent-bg);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
  line-height: 1.3;
}

/* Main Layout */
.page-body {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* Audit Top Panel */
.audit-headline-box {
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.audit-headline-box h1 {
  font-size: 20px;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.audit-headline-box p {
  font-size: 12px;
  color: #334155;
  font-weight: 700;
  margin-top: 2px;
}
.audit-verified-badge {
  background: var(--tag-badge);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Machine-Readable OCR Big Metrics (4 Columns) */
.ocr-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ocr-metric-item {
  background: #ffffff;
  border: 2px solid #334155;
  border-radius: 4px;
  padding: 14px 16px;
  border-left: 6px solid var(--primary);
}
.ocr-metric-title {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.ocr-metric-number {
  font-size: 30px;
  font-weight: 900;
  color: #000000;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ocr-metric-footnote {
  font-size: 11px;
  font-weight: 800;
  color: #059669;
}

/* Structured Machine-Readable Table Panel */
.audit-table-container {
  border: 2px solid #0f172a;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #ffffff;
}
.audit-table-header {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
table.registry-table th {
  background: #e2e8f0;
  color: #000000;
  font-weight: 900;
  padding: 9px 12px;
  border-bottom: 2px solid #334155;
  border-right: 1px solid #94a3b8;
  text-transform: uppercase;
}
table.registry-table th:last-child { border-right: none; }
table.registry-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #cbd5e1;
  border-right: 1px solid #e2e8f0;
  color: #000000;
  vertical-align: middle;
}
table.registry-table td:last-child { border-right: none; }
table.registry-table tr:nth-child(even) { background: #f8fafc; }
table.registry-table tr:hover { background: #eff6ff; }

/* Status Labels */
.badge-psa {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #b91c1c;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}
.badge-bgs {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #b45309;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}
.badge-cgc {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #0284c7;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}
.badge-ace {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #7e22ce;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}
.badge-pass {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #059669;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Footer */
footer.registry-footer {
  border-top: 2px solid #0f172a;
  background: #f1f5f9;
  padding: 16px 24px;
  margin-top: 30px;
}
.footer-bar {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}