/* =============================================================================
   VPNZM · home.css
   Home page only: the injected line-status grid and the flag helper classes
   used by the inline flag sprite. Every colour resolves to a :root token.
   ========================================================================== */

/* ------------------------------------------------------- flag colour hooks */
.fl-red-stroke{stroke:var(--flag-red);fill:none}

/* --------------------------------------------------------- line status --- */
.server-status{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  max-width:100%;
  overflow:hidden;
  margin:0 0 24px;
}
.server-status:empty{display:none}

.srv-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:10px 14px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-soft);
}

.srv-dot{
  width:8px;
  height:8px;
  flex:none;
  border-radius:50%;
  background:var(--success);
  animation:srv-breathe 2.6s ease-in-out infinite;
}

@keyframes srv-breathe{
  0%,100%{opacity:.42}
  50%{opacity:1}
}

.srv-flag{
  width:20px;
  height:20px;
  flex:none;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:var(--flag-white);
  box-shadow:0 0 0 1px var(--ink-08) inset;
}
.srv-flag svg{width:100%;height:100%;display:block}

.srv-name{
  min-width:0;
  font-size:13px;
  font-weight:700;
  color:var(--text);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.srv-type{
  flex:none;
  padding:2px 8px;
  border-radius:var(--r-pill);
  border:1px solid var(--accent-line);
  background:var(--accent-ghost);
  color:var(--accent);
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.02em;
  white-space:nowrap;
}

.srv-ms{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size:11.5px;
  font-variant-numeric:tabular-nums;
  color:var(--text-muted);
  white-space:nowrap;
}

.srv-bw{
  font-family:var(--font-mono);
  font-size:11px;
  font-variant-numeric:tabular-nums;
  color:var(--text-muted);
  white-space:nowrap;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width:760px){
  .server-status{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  .srv-dot{animation:none;opacity:1}
}