/* /public/assets/css/start.css — FULL REPLACEMENT
   White start page without overriding header styling globally.
   Includes SSR widgets: Magnitude Fingerprint + Activity Gauge (M>=3).
*/

.qmk-startpage {
  background: #fff;
  color: #111827;
  min-height: 100vh;
}

.qmk-startpage a { color: inherit; }

.qmk-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 14px 44px;
}
@media (min-width: 980px){
  .qmk-wrap{ padding: 26px 18px 70px; }
}

/* HERO */
.qmk-hero{
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}
.qmk-hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 0 14px;
}
@media (min-width: 980px){
  .qmk-hero-grid{ grid-template-columns: 1.15fr .85fr; gap: 18px; padding: 34px 0 22px; }
}

.qmk-h1{
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
@media (min-width: 980px){ .qmk-h1{ font-size: 42px; } }

.qmk-lead{
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: #374151;
  max-width: 72ch;
}
@media (min-width: 980px){ .qmk-lead{ font-size: 16px; } }

/* Buttons (uniform) */
.qmk-actions{ display:flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.qmk-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.qmk-btn:hover{ background:#f9fafb; }

.qmk-btn--primary{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.qmk-btn--primary:hover{ background:#0b1220; }

.qmk-btn--small{
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 11px;
}

.qmk-alert{
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
}
.qmk-alert--warn{
  border-color: #f59e0b;
  background: #fff7ed;
  color: #7c2d12;
}

/* Cards */
.qmk-card{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(17,24,39,.05);
}
.qmk-card + .qmk-card{ margin-top: 12px; }

.qmk-card-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.qmk-card-head--row{ align-items:center; }

.qmk-h2{
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}

.qmk-h3{
  font-size: 14px;
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 850;
  color: #111827;
}

.qmk-muted{ color:#6b7280; }
.qmk-small{ font-size: 12.5px; }

.qmk-section{
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

/* Two-column grid (sections below hero) */
.qmk-grid2{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px){
  .qmk-grid2{ grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* HERO widgets card (right column) */
.qmk-card--hero-widgets{
  padding: 14px;
}
@media (min-width: 980px){
  .qmk-card--hero-widgets{
    position: sticky;
    top: 14px;
  }
}

/* Widget containers (Fingerprint + Gauge) */
.qmk-widget{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(17,24,39,.04);
}

.qmk-widget + .qmk-widget{
  margin-top: 12px;
}

.qmk-widget-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.qmk-widget-title{
  font-size: 14px;
  font-weight: 900;
}

.qmk-empty{
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #fafafa;
  color: #6b7280;
  font-size: 13px;
}
.qmk-empty--widget{
  min-height: 120px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* Fingerprint chart */
.qmk-fpwrap{
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.qmk-fp{
  width: 100%;
  height: auto;
  display: block;
}

/* Slight “card inside card” feel like screenshot */
.qmk-widget--fp{
  padding: 12px;
}
.qmk-widget--fp .qmk-fpwrap{
  border: 1px solid #eef2f7;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(17,24,39,.02);
}

/* KPI grid */
.qmk-kpi-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 600px){
  .qmk-kpi-grid{ grid-template-columns: 1fr 1fr; }
}
.qmk-kpi{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #fafafa;
}
.qmk-kpi--wide{
  grid-column: 1 / -1;
}

.qmk-kpi-label{ font-size: 12px; color:#6b7280; margin-bottom: 6px; }
.qmk-kpi-value{ font-size: 24px; font-weight: 850; letter-spacing: -0.02em; }
.qmk-kpi-sub{ font-size: 12.5px; color:#374151; margin-top: 4px; }
.qmk-kpi-sub--tight{ margin-top: 10px; }

/* Gauge widget */
.qmk-widget--gauge{
  padding: 12px;
}

.qmk-gauge{
  display:flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.qmk-gauge-svg{
  width: 290px;
  height: 175px;
  display:block;
}

@media (max-width: 420px){
  .qmk-gauge-svg{
    width: 260px;
    height: 160px;
  }
}

.qmk-gauge-meta{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.qmk-gauge-score{
  display:flex;
  align-items: baseline;
  gap: 6px;
}

.qmk-gauge-num{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.qmk-gauge-den{
  font-size: 14px;
  color:#6b7280;
}

/* The “Hoch” / state label like screenshot */
.qmk-gauge-state{
  width: 100%;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #111827;
  margin-top: 2px;
}

/* Events */
.qmk-event-head{
  display:flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.qmk-event-mag{
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.qmk-link{
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}
.qmk-link:hover{ text-decoration: underline; }

.qmk-event-meta{
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
}
.qmk-dot{ color:#9ca3af; }

.qmk-strongtext{
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #111827;
}

/* Row actions */
.qmk-row-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.qmk-row-actions--tight{ margin-top: 10px; }

/* Recent list */
.qmk-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.qmk-list-item{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display:grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
}
@media (min-width: 720px){
  .qmk-list-item{ grid-template-columns: 84px 1fr; }
}
.qmk-pillmag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.qmk-li-title{ font-size: 15px; margin-bottom: 4px; }
.qmk-li-meta{
  font-size: 13px;
  color: #374151;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Mini map details */
.qmk-mini{ display:inline-block; }
.qmk-mini > summary{
  list-style:none;
  cursor:pointer;
}
.qmk-mini > summary::-webkit-details-marker{ display:none; }

.qmk-mini-body{
  margin-top: 10px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}
.qmk-mini-map{
  height: 180px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background:#fff;
}
@media (min-width: 980px){
  .qmk-mini-map{ height: 220px; }
}

/* Country chips */
.qmk-chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.qmk-chip{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background:#fff;
  text-decoration:none;
  color:#111827;
  font-weight: 750;
  font-size: 13px;
}
.qmk-chip:hover{ background:#f9fafb; }
.qmk-chip-count{
  font-variant-numeric: tabular-nums;
  color:#6b7280;
  font-weight: 800;
}

/* Trust section */
.qmk-card--trust{ background: #fff; }
.qmk-trust-p{
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color:#111827;
}
.qmk-trust-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 980px){
  .qmk-trust-grid{ grid-template-columns: 1fr 1fr 1fr; }
}
.qmk-trust-box{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #fafafa;
}
.qmk-trust-k{
  font-size: 12px;
  color:#6b7280;
  margin-bottom: 6px;
  font-weight: 700;
}
.qmk-trust-v{
  font-size: 13.5px;
  color:#111827;
  line-height: 1.55;
  font-weight: 700;
}
