/* Public "Statistik & data" funnel — shared styling.
   Mirrors the Läsvärt (worthyofread) aesthetic and the brand design tokens. */

.stat-shell {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 42%, #ffffff 100%);
  min-height: calc(100vh - 80px);
  padding: 7rem 0 3rem;
}

.stat-header {
  border: 1px solid #e3e9f1;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}

.stat-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #667085;
  font-weight: 700;
}

.stat-breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.stat-breadcrumbs a { color: #365f9d; text-decoration: none; }
.stat-breadcrumbs a:hover { text-decoration: underline; }
.stat-breadcrumbs .sep { color: #b6c0cf; margin: 0 0.4rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 992px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 576px) { .stat-grid { grid-template-columns: 1fr; } }
@media (max-width: 991px) { .stat-shell { padding-top: 6.4rem; } }

.stat-card {
  border: 1px solid #e4eaf2;
  border-radius: 0.9rem;
  padding: 1.15rem;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.08);
  border-color: #cfd9e7;
}
.stat-card .stat-card-title { font-size: 1.05rem; font-weight: 700; color: #0b1627; margin-bottom: 0.35rem; }
.stat-card .stat-card-desc { color: #5a6472; font-size: 0.9rem; flex-grow: 1; }
.stat-card .stat-card-cta { margin-top: 0.9rem; color: #365f9d; font-weight: 600; font-size: 0.88rem; }

.stat-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #667085;
  font-weight: 700;
  margin: 1.6rem 0 0.8rem;
}

.stat-badge {
  display: inline-block;
  border: 1px solid #afc8f0;
  color: #365f9d;
  background: #f4f8ff;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  border-radius: 999px;
}

.stat-panel {
  border: 1px solid #e3e9f1;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.stat-empty {
  border: 1px dashed #ccd6e3;
  border-radius: 0.9rem;
  padding: 2rem;
  background: #f8fafc;
  color: #667085;
  text-align: center;
}

.stat-cta {
  border-radius: 1rem;
  background: linear-gradient(120deg, #0f88f2 0%, #38b6ff 100%);
  color: #fff;
  padding: 1.6rem;
  margin-top: 1.4rem;
}
.stat-cta .btn { border-radius: 0.75rem; }

.stat-table { font-size: 0.85rem; }
.stat-table th { background: #f5f8fc; }

.stat-filters .form-select, .stat-filters .form-control { border-color: #d4dbe6; }
