/* /public/assets/css/earthquakes.css  (FULL REPLACEMENT) */

.qmk-eq {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

/* Actions */
.qmk-eq-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Force light page background only for earthquakes page */
body.qmk-eqpage {
  background: #fff;
  color: rgba(0,0,0,.92);
}

body.qmk-eqpage footer,
body.qmk-eqpage .qmk-footer,
body.qmk-eqpage .site-footer {
  background: #fff;
  color: inherit;
}


/* KPI card */
.qmk-eq-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

/* Light theme surfaces */
.qmk-kpi {
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.02);
}

.qmk-kpi__k {
  font-size: 12px;
  color: rgba(0,0,0,.65);
}

.qmk-kpi__v {
  font-size: 18px;
  margin-top: 6px;
  color: rgba(0,0,0,.92);
}

.qmk-kpi__v--sm { font-size: 13px; }
.qmk-kpi--wide { grid-column: 1 / -1; }

/* Main grid */
.qmk-eq-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 14px;
  margin-top: 14px;
}

/* Card header */
.qmk-cardhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.qmk-ctitle {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,.92);
}

.qmk-csub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0,0,0,.62);
}

.qmk-empty {
  padding: 12px 14px;
  color: rgba(0,0,0,.62);
  font-size: 13px;
}

/* Lists */
.qmk-siglist, .qmk-countrylist { padding: 6px 0; }

.qmk-sigrow, .qmk-crow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
}

.qmk-sigrow:hover, .qmk-crow:hover {
  background: rgba(0,0,0,.03);
}

.qmk-sigrow__left, .qmk-crow__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qmk-sigrow__main, .qmk-crow__main { min-width: 0; }

.qmk-sigrow__title, .qmk-crow__title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(0,0,0,.92);
}

.qmk-sigrow__meta, .qmk-crow__meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(0,0,0,.62);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.qmk-sigrow__right { display: flex; align-items: center; gap: 8px; }
.qmk-chev { opacity: .65; color: rgba(0,0,0,.70); }

/* Badge */
.qmk-badge {
  min-width: 44px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 800;
  color: rgba(0,0,0,.92);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.12);
}

/* Flags + links */
.qmk-flag {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}

.qmk-link {
  color: rgba(0,0,0,.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.22);
}

.qmk-link:hover {
  border-bottom-color: rgba(0,0,0,.45);
}

.qmk-dim { color: rgba(0,0,0,.62); }
.qmk-dot { opacity: .55; }

/* Trust box */
.qmk-trust {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.qmk-trust__t {
  font-weight: 800;
  margin-bottom: 6px;
  color: rgba(0,0,0,.92);
}

.qmk-trust__p {
  color: rgba(0,0,0,.70);
  font-size: 13px;
  line-height: 1.45;
}

.qmk-trust__links {
  margin-top: 8px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* FAQ */
.qmk-faq { margin-top: 14px; padding-bottom: 4px; }

.qmk-faq-item {
  margin: 10px 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  border-radius: 14px;
  padding: 10px 12px;
}

.qmk-faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: rgba(0,0,0,.92);
}

.qmk-faq-a {
  margin-top: 8px;
  color: rgba(0,0,0,.70);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .qmk-eq-grid { grid-template-columns: 1fr; }
  .qmk-eq-kpis { grid-template-columns: 1fr; }
}
