/* ImpactGuard — tactical readability (Barlow Condensed, larger sizes, aligned stats) */

:root {
  --font-tactical: 'Barlow Condensed', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --text-ui: 1rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;
  --leading: 1.5;
}

html {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-tactical) !important;
  font-size: 1.0625rem !important;
  font-weight: 500 !important;
  line-height: var(--leading) !important;
  letter-spacing: 0.02em !important;
}

/* Mono only for tiny system labels */
.hero-sys,
.ml-kicker,
.nav-section-title,
.data-table th,
.table th,
.store-kicker,
.stat-label {
  font-family: var(--font-mono) !important;
}

/* ── Landing nav (tactical uppercase, readable size) ── */
.nav-links a {
  font-family: var(--font-tactical) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.5rem 0.75rem !important;
}

.nav-brand {
  font-size: 1.125rem !important;
}

.nav-brand small {
  font-size: 0.7rem !important;
  letter-spacing: 0.16em !important;
}

.btn {
  font-family: var(--font-tactical) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

.hero-sub,
.section-lead,
.ml-sub,
p,
li,
td,
label,
input,
select,
textarea {
  font-family: var(--font-tactical) !important;
}

.hero-sub,
.section-lead,
p {
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

.hero-title {
  letter-spacing: 0.03em !important;
}

/* ── Landing hero stats — equal columns, aligned value + label blocks ── */
.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: 100% !important;
}

.hero-stat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 1.35rem 0.75rem !important;
  min-height: 7.5rem !important;
  box-sizing: border-box !important;
}

.hero-stat-value {
  font-family: var(--font-tactical) !important;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  min-height: 2.65rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0.4rem !important;
  width: 100% !important;
}

.hero-stat-label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.35 !important;
  min-height: 2.6em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  max-width: 11rem !important;
  margin: 0 auto !important;
}

@media (min-width: 1100px) {
  .hero-inner.hero-split {
    align-items: start !important;
  }

  .hero-stats {
    grid-column: 1 / -1 !important;
    margin-top: 2rem !important;
  }
}

@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero-stat:nth-child(2) {
    border-right: none !important;
  }

  .hero-stat-label {
    max-width: 100% !important;
    min-height: 2.2em !important;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr !important;
  }

  .hero-stat {
    border-right: none !important;
    min-height: auto !important;
    padding: 1.1rem !important;
  }

  .hero-stat-label {
    min-height: auto !important;
  }
}

/* ── Panel sidebar (tactical, readable) ── */
.nav-item {
  font-family: var(--font-tactical) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.nav-section-title {
  font-size: var(--text-xs) !important;
}

#page-title,
.main-header h1 {
  font-family: var(--font-tactical) !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ── Panel stat cards — aligned grid ── */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1px !important;
  align-items: stretch !important;
}

.stat-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: 7.25rem !important;
  padding: 1.2rem 1.25rem !important;
  box-sizing: border-box !important;
}

.stat-card .stat-icon {
  flex-shrink: 0 !important;
  margin-bottom: 0.65rem !important;
}

.stat-value {
  font-family: var(--font-tactical) !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin-bottom: 0.35rem !important;
  width: 100% !important;
}

.stat-label {
  font-size: var(--text-xs) !important;
  letter-spacing: 0.1em !important;
  line-height: 1.35 !important;
  margin-top: auto !important;
  width: 100% !important;
  min-height: 2.2em !important;
  display: flex !important;
  align-items: flex-end !important;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-card {
    min-height: auto !important;
  }

  .stat-label {
    min-height: auto !important;
    margin-top: 0.25rem !important;
  }
}

/* ── Panel tables & forms ── */
.data-table th,
.data-table td,
.table th,
.table td {
  font-family: var(--font-tactical) !important;
  font-size: var(--text-ui) !important;
  line-height: 1.45 !important;
  padding: 0.75rem 1rem !important;
}

.data-table th,
.table th {
  font-family: var(--font-mono) !important;
  font-size: var(--text-xs) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.form-input,
.form-select,
.filter-select,
.search-input input {
  font-family: var(--font-tactical) !important;
  font-size: var(--text-ui) !important;
  min-height: 42px !important;
}

.card-title {
  font-family: var(--font-tactical) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

.chart-bar-label {
  font-size: var(--text-sm) !important;
  width: 130px !important;
}

.chart-bar-track {
  height: 28px !important;
}

/* ── Docs / status / appeal ── */
.doc-body p,
.doc-body li,
.appeal-card .card-subtitle {
  font-size: 1.0625rem !important;
  line-height: 1.55 !important;
}

.hero-sys,
.ml-kicker {
  font-size: 0.8125rem !important;
}
