/* Consystence status site — standalone, brand-token-driven, CSP-clean (no inline styles).
 * Vendors Inter locally so the page is fully self-contained on its independent host. */

@font-face {
    font-family: "Inter";
    src: url("brand/fonts/inter-variable-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 50% -10%, var(--csy-navy-500, #002236), var(--csy-navy-900, #00070d)) fixed,
        var(--csy-navy-900, #00070d);
    color: var(--csy-text, #e6f0f4);
    font-family: var(--csy-font-web, "Inter", system-ui, sans-serif);
    -webkit-font-smoothing: antialiased;
}

.status-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.status-head {
    margin-bottom: 32px;
}

.status-logo {
    height: 60px;
    width: auto;
}

/* ---- Overall banner ---- */
.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border: 1px solid var(--csy-line-cyan, rgba(0, 197, 255, 0.13));
    border-radius: var(--csy-radius-lg, 12px);
    background: var(--csy-navy-500, #002236);
    font-size: 1.25rem;
    font-weight: 600;
}

.status-dot {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--csy-idle, #6b8794);
    box-shadow: 0 0 0 4px rgba(107, 135, 148, 0.18);
}

.status-banner[data-status="operational"] .status-dot {
    background: var(--csy-ok, #2fe0a6);
    box-shadow: 0 0 0 4px rgba(47, 224, 166, 0.18);
}

.status-banner[data-status="degraded"] .status-dot {
    background: var(--csy-warn, #ffb84d);
    box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.18);
}

.status-banner[data-status="down"] .status-dot {
    background: var(--csy-fault, #ff5f6e);
    box-shadow: 0 0 0 4px rgba(255, 95, 110, 0.18);
}

.status-updated {
    margin: 12px 4px 0;
    color: var(--csy-text-dim, #5f7884);
    font-size: 0.85rem;
    font-family: var(--csy-font-mono, ui-monospace, monospace);
}

.status-error {
    margin: 16px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 95, 110, 0.25);
    border-radius: var(--csy-radius-md, 8px);
    background: rgba(255, 95, 110, 0.1);
    color: var(--csy-fault, #ff5f6e);
    font-size: 0.9rem;
}

/* ---- Sections + rows ---- */
.status-section {
    margin-top: 40px;
}

.status-section-title {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--csy-text-dim, #5f7884);
}

.status-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding: 16px 20px;
    border: 1px solid var(--csy-line-soft, rgba(255, 255, 255, 0.06));
    border-radius: var(--csy-radius-md, 8px);
    background: var(--csy-navy-400, #00212f);
}

.status-row-name {
    font-weight: 500;
}

.status-empty {
    justify-content: flex-start;
    color: var(--csy-text-dim, #5f7884);
}

/* ---- Status chip (mirrors the console .csy-chip, with status variants) ---- */
.csy-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--csy-radius-sm, 6px);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--csy-font-mono, ui-monospace, monospace);
    white-space: nowrap;
    color: var(--csy-idle, #6b8794);
    background: rgba(107, 135, 148, 0.12);
}

.csy-chip[data-status="operational"] {
    color: var(--csy-ok, #2fe0a6);
    background: rgba(47, 224, 166, 0.12);
}

.csy-chip[data-status="degraded"] {
    color: var(--csy-warn, #ffb84d);
    background: rgba(255, 184, 77, 0.12);
}

.csy-chip[data-status="down"] {
    color: var(--csy-fault, #ff5f6e);
    background: rgba(255, 95, 110, 0.12);
}

/* ---- Footer ---- */
.status-foot {
    margin-top: 48px;
}

.status-foot-note {
    color: var(--csy-text-faint, #3f5560);
    font-size: 0.8rem;
}
