/* — HERO & NAV-BACK — */
.hero {
  padding: 8rem 2.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.nav-back {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--subtext);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color .2s;
}

.nav-back:hover {
  color: var(--text);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--subtext);
}

.breadcrumb span {
  color: var(--accent);
}

.case-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200, 16, 46, .3);
  padding: 3px 10px;
  margin-bottom: 1.25rem;
}

.case-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.hero-en {
  font-size: 1rem;
  color: var(--subtext);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.meta-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.meta-val {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.meta-val.red {
  color: var(--accent);
  font-weight: 700;
}

.meta-val.green {
  color: var(--green);
}

.verdict-bar {
  background: rgba(200, 16, 46, .08);
  border: 1px solid rgba(200, 16, 46, .25);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.verdict-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.verdict-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* — LAYOUT — */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-number {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-desc {
  font-size: 14px;
  color: var(--subtext);
  max-width: 640px;
}

/* — GRAPH — */
.graph-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  height: 420px;
  margin-bottom: 1rem;
}

#supply-chain-svg {
  width: 100%;
  height: 100%;
}

.graph-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--subtext);
  margin-bottom: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tooltip {
  position: absolute;
  background: #0E1118;
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  border-radius: 3px;
  font-size: 12px;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  max-width: 240px;
  line-height: 1.5;
  z-index: 10;
}

.tt-name { font-weight: 700; margin-bottom: 3px; }
.tt-inn { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.tt-status { font-size: 11px; margin-top: 4px; }

/* — TABLES — */
.ev-table, .chain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ev-table th, .chain-table th {
  background: #0E1118;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--subtext);
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ev-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(30, 33, 48, .6);
  vertical-align: top;
  color: var(--text);
  line-height: 1.5;
}

.ev-table td:first-child { font-weight: 600; white-space: nowrap; }
.ev-table td.source { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ev-table tr:hover td { background: rgba(255, 255, 255, .02); }

.chain-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(30, 33, 48, .6);
  vertical-align: middle;
}

.chain-table tr.highlight td { background: rgba(200, 16, 46, .06); }
.chain-table tr.highlight td:first-child { font-weight: 700; }

.conf-high { color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.conf-ver { color: #4FC3F7; font-family: var(--mono); font-size: 11px; font-weight: 700; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}

.tag-sdn { background: rgba(200, 16, 46, .15); color: #F08090; border: 1px solid rgba(200, 16, 46, .3); }
.tag-eu { background: rgba(240, 165, 0, .12); color: #F0C040; border: 1px solid rgba(240, 165, 0, .25); }
.tag-gap { background: rgba(200, 16, 46, .25); color: #FF6080; border: 1px solid rgba(200, 16, 46, .5); font-weight: 700; }

/* — LEGAL CARDS — */
.legal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:640px) { .legal-cards { grid-template-columns: 1fr; } }

.legal-card { background: var(--surface); border: 1px solid var(--border); padding: 1.25rem; }
.legal-card.primary { border-left: 3px solid var(--accent); }
.legal-card.secondary { border-left: 3px solid var(--muted); }
.legal-card-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.legal-card-label.sec { color: var(--muted); }
.legal-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 0.5rem; }
.legal-card p { font-size: 13px; color: var(--subtext); line-height: 1.6; }

.auto-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  background: rgba(0, 200, 117, .1);
  color: var(--green);
  border: 1px solid rgba(0, 200, 117, .25);
  margin-top: 0.75rem;
}

/* — SCORES — */
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media(max-width:640px) { .score-grid { grid-template-columns: 1fr 1fr; } }
.score-card { background: var(--surface); border: 1px solid var(--border); padding: 1.1rem; text-align: center; }
.score-val { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.25rem; }
.score-axis { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.score-weight { font-size: 11px; color: var(--muted); }
.score-composite { background: rgba(200, 16, 46, .08); border: 1px solid rgba(200, 16, 46, .3); padding: 1.25rem; text-align: center; margin-top: 1rem; }
.score-composite-val { font-family: var(--mono); font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; }
.score-composite-label { font-size: 12px; color: var(--subtext); margin-top: 0.25rem; }

/* — GAPS — */
.gap-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid rgba(30, 33, 48, .6); }
.gap-row:last-child { border-bottom: none; }
.gap-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(240, 165, 0, .1); border: 1px solid rgba(240, 165, 0, .25); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 2px; color: var(--yellow); }
.gap-title { font-size: 13px; font-weight: 600; margin-bottom: 0.25rem; }
.gap-desc { font-size: 12px; color: var(--subtext); line-height: 1.5; }
.gap-tag { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; background: rgba(0, 200, 117, .1); color: var(--green); border: 1px solid rgba(0, 200, 117, .25); margin-top: 0.4rem; }

/* — CTA — */
.cta-block { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 2rem 2.5rem; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cta-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.cta-text p { font-size: 13px; color: var(--subtext); max-width: 480px; line-height: 1.6; }
