/* status.roarnode.com: the look of roarnode.com (relay/public/site/site.css). */

:root {
  --bg: #070b0d;
  --panel: rgba(16, 22, 25, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #eef5f0;
  --soft: #c3d3c9;
  --muted: #93a89c;
  --grad: linear-gradient(110deg, #c2f36e 0%, #66db6c 45%, #2fbf74 100%);
  /* status: only ever with an icon and a word */
  --ok: #4fd26b;
  --warn: #fab219;
  --bad: #f05252;
  --none: rgba(255, 255, 255, 0.1);
  /* the response time line (not a status) */
  --series: #5cb8ff;
  --radius: 18px;
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; font-family: var(--body); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 560px at 12% 0%, rgba(16, 122, 92, 0.42), transparent 70%),
    radial-gradient(680px 480px at 70% 0%, rgba(22, 82, 146, 0.4), transparent 70%),
    radial-gradient(820px 640px at 96% 100%, rgba(66, 134, 32, 0.28), transparent 70%),
    var(--bg); }
a { color: inherit; }
a:focus-visible, button:focus-visible, .bars:focus-visible { outline: 2px solid #b4f06a; outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 11, 13, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { display: block; }
.label { font: 600 13px var(--body); color: var(--soft); padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
.btn { margin-left: auto; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 12px; font: 650 14px/1.2 var(--body);
  text-decoration: none; color: #06140b; background: var(--grad); box-shadow: 0 10px 28px -12px rgba(95, 217, 106, 0.6); }
.btn:hover { filter: brightness(1.06); }

main.wrap { padding-top: 28px; padding-bottom: 8px; }

/* the overall state */
.banner { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--panel); margin-bottom: 18px; position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; opacity: 0.16; background: radial-gradient(500px 200px at 0% 0%, var(--tone), transparent 70%); pointer-events: none; }
.banner.ok { --tone: var(--ok); }
.banner.degraded, .banner.partial { --tone: var(--warn); }
.banner.major { --tone: var(--bad); }
.banner.unknown { --tone: var(--muted); }
.banner .big { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #071009; }
.banner .big svg { width: 28px; height: 28px; }
.banner h1 { margin: 0; font: 800 clamp(20px, 4.4vw, 26px)/1.2 var(--head); letter-spacing: -0.01em; }
.banner p { margin: 4px 0 0; color: var(--soft); font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fact { font-size: 12.5px; color: var(--soft); padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.fact b { color: var(--text); font-weight: 600; }

/* cards */
.card { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); margin-bottom: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card h2 { margin: 0; font: 700 17px var(--head); }

/* parts and their 90 days */
.parts { list-style: none; margin: 0; padding: 0; }
.part { padding: 16px 0; border-top: 1px solid var(--line); }
.part:first-child { border-top: 0; }
.part-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.part h3 { margin: 0; font-size: 15.5px; font-weight: 650; }
.part .about { margin: 1px 0 0; font-size: 13px; color: var(--muted); }
.state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.state svg { width: 16px; height: 16px; }
.state.ok { color: var(--ok); }
.state.degraded { color: var(--warn); }
.state.down { color: var(--bad); }
.state.unknown { color: var(--muted); }
.state .ms { color: var(--muted); font-weight: 500; }
.detail { margin: 6px 0 0; font-size: 13px; color: var(--soft); }
.bars { display: flex; gap: 2px; height: 34px; margin-top: 12px; cursor: default; touch-action: pan-y; }
.bars i { flex: 1; min-width: 2px; border-radius: 3px; background: var(--none); transition: opacity 0.15s; }
.bars i.ok { background: var(--ok); }
.bars i.warn { background: var(--warn); }
.bars i.bad { background: var(--bad); }
.bars i.on { opacity: 0.6; }
.bar-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.bar-scale .up { color: var(--soft); }
.d30, .u30 { display: none; }

/* response time */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.tabs button { font: 600 13px var(--body); color: var(--soft); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.tabs button:hover { background: rgba(255, 255, 255, 0.08); }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--series); background: rgba(92, 184, 255, 0.12); }
.chart { position: relative; height: 200px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--body); }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#area); }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; }
.chart .dot { fill: var(--series); stroke: #0c1214; stroke-width: 2; }
.chart .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* incidents */
.incidents { list-style: none; margin: 0; padding: 0; }
.incident { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.incident:first-child { border-top: 0; }
.incident .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.incident.down .icon { color: var(--bad); }
.incident.degraded .icon { color: var(--warn); }
.incident .what { flex: 1; min-width: 0; }
.incident b { font-weight: 650; }
.incident p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pill { flex: none; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); }
.pill.live { color: var(--bad); border-color: rgba(240, 82, 82, 0.5); }
.none-yet { padding: 10px 0 4px; color: var(--soft); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.none-yet svg { width: 18px; height: 18px; color: var(--ok); }

.note { color: var(--muted); font-size: 12.5px; margin: 4px 4px 0; }

footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 22px 0 36px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer nav a { color: var(--soft); text-decoration: none; font-size: 14px; }
footer nav a:hover { color: #fff; }

/* the tooltip for a day or a point */
.tip { position: fixed; z-index: 20; pointer-events: none; max-width: 240px; padding: 8px 11px; border-radius: 10px; background: #182024;
  border: 1px solid var(--line-strong); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7); font-size: 12.5px; color: var(--soft); }
.tip b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.tip .row { display: flex; align-items: center; gap: 6px; }
.tip .sw { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* phones: the last 30 days */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 58px; }
  .brand .word { display: none; }
  .banner { padding: 18px; gap: 14px; }
  .banner .big { width: 42px; height: 42px; }
  .banner .big svg { width: 22px; height: 22px; }
  .card { padding: 16px; }
  .bars i:nth-child(-n + 60) { display: none; }
  .d90, .u90 { display: none; }
  .d30, .u30 { display: inline; }
  .part-head { flex-direction: column; gap: 4px; }
}
