/*
 * The public status page (/status, src/site/status.ts). Loaded after site.css and docs.css
 * (sitePage `styles`), so their tokens and components (.chip, .dhead, .btn ...) are available.
 * CSP: no inline styles anywhere; everything the page needs is in this file.
 */

.st { display: grid; gap: 24px; max-width: 920px; padding-top: 36px; padding-bottom: 112px; }

/* overall line */
.st-overall {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.st-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; }
.st-ico .i { width: 20px; height: 20px; stroke-width: 2.2; }
.st-overall-ok { border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.st-overall-ok .st-ico { background: var(--ok-soft); color: var(--ok); }
.st-overall-warn { border-color: color-mix(in srgb, var(--warn) 34%, var(--border)); }
.st-overall-warn .st-ico { background: var(--warn-soft); color: var(--warn); }
.st-overall-txt { display: grid; gap: 4px; min-width: 0; }
.st-overall-txt b { font-size: 18px; line-height: 26px; font-weight: 650; letter-spacing: -0.01em; }
.st-overall-txt span { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* accepting + time of the check */
.st-facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--text-2); }
.st-facts li { display: inline-flex; align-items: center; gap: 10px; }
.st-facts .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.st-yes .dot { background: var(--ok); }
.st-no .dot { background: var(--warn); }
.st-yes, .st-no { font-weight: 600; color: var(--text); }
.st-refresh { height: 32px; padding: 0 12px; font-size: 13px; }

/* networks */
.st-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-cap { padding: 14px 18px 0; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); }
.st-table th, .st-table td { padding: 12px 18px; text-align: left; vertical-align: middle; }
.st-table thead th { font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.st-table tbody tr + tr th, .st-table tbody tr + tr td { border-top: 1px solid var(--border); }
.st-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.st-coins { color: var(--text-2); }
.st-coin {
  display: inline-block; margin: 2px 6px 2px 0; padding: 1px 8px; border-radius: 999px;
  background: var(--surface-3); font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--text-2);
}
.st-table .st-state { text-align: right; white-space: nowrap; }
.st-off .st-name, .st-off .st-coin { color: var(--muted); }
.st-empty { padding: 18px 20px; border: 1px dashed var(--border-strong); border-radius: 16px; color: var(--muted); }
.st-note { font-size: 13px; color: var(--muted); }

/* the delays of the last days */
.st-recent { display: grid; gap: 12px; }
.st-h2 { font-size: 16px; line-height: 24px; font-weight: 650; letter-spacing: -0.01em; }
.st-inc { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.st-inc li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 18px; font-size: 14px; }
.st-inc li + li { border-top: 1px solid var(--border); }
.st-inc-name { min-width: 120px; font-weight: 600; color: var(--text); }
.st-inc-when { flex: 1 1 auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.st-inc-dur { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-inc-none { padding: 14px 18px; border: 1px dashed var(--border-strong); border-radius: 16px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .st { padding-top: 24px; padding-bottom: 72px; }
  .st-table th, .st-table td { padding: 10px 12px; }
  .st-table thead th:nth-child(2), .st-coins { display: none; }
}
