/* Vietnam EHS QCVN 2025-2031 Compliance Hub — Clean Technical Stylesheet */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --navy: #0f172a;
  --brand: #0369a1;
  --brand-dark: #075985;
  --brand-light: #e0f2fe;
  --ok-bg: #dcfce7;
  --ok-ink: #166534;
  --warn-bg: #fef9c3;
  --warn-ink: #854d0e;
  --err-bg: #fee2e2;
  --err-ink: #991b1b;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid #0ea5e9;
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.brand-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-title:hover { text-decoration: none; color: #bae6fd; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.9rem;
}
.nav-links a { color: #cbd5e1; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }
.nav-cta {
  background: #0ea5e9;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 6px 12px;
  border-radius: 6px;
}
.nav-cta:hover { background: #38bdf8; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 40px 0 36px;
}
.hero h1 { margin: 0 0 12px; font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; }
.hero p.lead { margin: 0 0 20px; color: #cbd5e1; max-width: 860px; font-size: 1.05rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.35);
}

/* Sections & Cards */
main { padding: 28px 0 56px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.card h2 { margin-top: 0; font-size: 1.35rem; color: var(--navy); }
.card h3 { margin-top: 0; font-size: 1.1rem; color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stat-box {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
}
.stat-box .num { font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.stat-box .lbl { font-size: 0.85rem; color: var(--muted); }

/* Controls & Forms */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #f1f5f9;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.field input, .field select {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
}
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: #e2e8f0; color: var(--navy); }
.btn-secondary:hover { background: #cbd5e1; text-decoration: none; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  max-height: 620px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
}
thead th {
  position: sticky;
  top: 0;
  background: #0f172a;
  color: #fff;
  text-align: left;
  padding: 10px 10px;
  font-weight: 600;
  z-index: 5;
}
tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:hover { background: #f8fafc; }
input.lab-input {
  width: 96px;
  padding: 5px 7px;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  background: #fefce8;
  font-weight: 600;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.st-pass { background: var(--ok-bg); color: var(--ok-ink); }
.st-warn { background: var(--warn-bg); color: var(--warn-ink); }
.st-fail { background: var(--err-bg); color: var(--err-ink); }
.st-idle { background: #f1f5f9; color: #64748b; }
.lock-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}
.lock-pill:hover { background: #dbeafe; text-decoration: none; }

/* Pricing CTA Box */
.workbook-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
}
.workbook-cta h2 { color: #fff; margin-top: 0; }
.tier-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 18px;
}
.tier-price { font-size: 1.8rem; font-weight: 800; color: #38bdf8; margin: 6px 0; }
.workbook-cta ul { padding-left: 18px; color: #e2e8f0; font-size: 0.92rem; }
.btn-accent { background: #38bdf8; color: #0f172a; }
.btn-accent:hover { background: #7dd3fc; color: #0f172a; text-decoration: none; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 28px 0;
  font-size: 0.85rem;
  border-top: 1px solid #1e293b;
}
.site-footer a { color: #cbd5e1; }
.muted { color: var(--muted); font-size: 0.86rem; }
code { background: #f1f5f9; padding: 2px 5px; border-radius: 4px; font-size: 0.86em; }
