/* WestRP status page. Tokens from the westrp.lt website (styles/tokens.css). */
@font-face { font-family: "Geist"; src: url("geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage"; src: url("bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink-0: #07080D; --ink-1: #0E1018; --ink-2: #151925; --ink-3: #1D2231;
  --fg: #F4F1EC; --fg-2: #D3D8E4; --muted: #98A0B3;
  --hair: rgb(190 205 255 / 0.11); --hair-strong: rgb(190 205 255 / 0.22);
  --accent: #FFB938; --on-accent: #1A0E04;
  --ok: #8FD6A8; --warn: #E5C46F; --bad: #F2A5A0; --none: #262B3A;
  --r: 10px;
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink-0);
  background-image: radial-gradient(1100px 520px at 18% -8%, rgb(255 185 56 / 0.08), transparent 62%);
  background-attachment: fixed;
  color: var(--fg);
  font: 16px/1.6 "Geist", system-ui, sans-serif;
  padding: 0 clamp(16px, 4vw, 32px);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }

.top, main, .foot { max-width: 860px; margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; gap: 20px; padding: 56px 0 44px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 28px/1 "Bricolage", "Geist", sans-serif; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }
.sep { width: 2px; height: 40px; background: var(--fg); opacity: .9; }
.title { font: 500 26px/1.1 "Bricolage", "Geist", sans-serif; letter-spacing: -0.02em; color: var(--fg-2); }
.btn {
  margin-left: auto; display: inline-flex; align-items: center; height: 44px; padding: 0 22px;
  border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background-color var(--m-out), transform var(--m-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #F0AA2C; transform: translateY(-1px); transition-duration: var(--m-in); }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }

/* Banner */
.banner {
  display: flex; align-items: center; gap: 14px; padding: 24px 24px; border-radius: var(--r);
  font: 600 21px/1.2 "Bricolage", "Geist", sans-serif; letter-spacing: -0.01em; color: var(--on-accent);
}
.banner--operational { background: var(--ok); }
.banner--degraded { background: var(--warn); }
.banner--down { background: var(--bad); }
.banner--unknown { background: var(--ink-2); color: var(--fg); border: 1px solid var(--hair); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: .75; flex: none; }

.active { margin-top: 16px; padding: 18px 22px; border: 1px solid var(--hair-strong); border-left: 4px solid var(--warn); border-radius: var(--r); background: var(--ink-1); }
.active h2 { margin: 0 0 6px; font: 600 18px/1.3 "Bricolage", "Geist", sans-serif; }
.active p { margin: 0; color: var(--fg-2); }
.active.incident--major { border-left-color: var(--bad); }

/* Groups */
.groups { margin-top: 64px; border: 1px solid var(--hair); border-radius: var(--r); background: rgb(14 16 24 / 0.72); overflow: hidden; }
.group + .group { border-top: 1px solid var(--hair); }
.group summary {
  display: flex; align-items: center; gap: 12px; padding: 22px 22px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 17px; transition: background-color var(--m-out);
}
.group summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .group summary:hover { background: rgb(255 255 255 / 0.025); transition-duration: var(--m-in); } }
.plus { width: 14px; height: 14px; border: 1.5px solid var(--fg-2); border-radius: 3px; position: relative; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--fg-2); inset: 50% 2px auto; height: 1.5px; transform: translateY(-50%); }
.plus::after { inset: 2px auto 2px 50%; width: 1.5px; height: auto; transform: translateX(-50%); }
.group[open] .plus::after { display: none; }
.group__name { flex: 1; }
.group__body { padding: 0 22px 10px; }

.state { font-size: 15px; font-weight: 500; white-space: nowrap; }
.state--operational { color: var(--ok); }
.state--degraded { color: var(--warn); }
.state--down { color: var(--bad); }
.state--unknown { color: var(--muted); }

.comp { padding: 16px 0 18px; border-top: 1px solid var(--hair); }
.comp__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.comp__name { font-weight: 500; flex: 1; min-width: 12ch; }
.detail { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; margin-top: 12px; }
.bar { border-radius: 2px; background: var(--none); }
.bar--operational { background: var(--ok); }
.bar--degraded { background: var(--warn); }
.bar--down { background: var(--bad); }
.bars__legend { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bars__rule { flex: 1; height: 1px; background: var(--hair); }
.narrow { display: none; }
@media (max-width: 640px) { .wide { display: none; } .narrow { display: inline; } }

/* Past incidents */
.past { margin: 88px 0 8px; font: 700 34px/1.1 "Bricolage", "Geist", sans-serif; letter-spacing: -0.03em; }
.day { padding: 22px 0 6px; }
.day h3 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); font: 700 22px/1.2 "Bricolage", "Geist", sans-serif; letter-spacing: -0.02em; }
.day > p { margin: 0 0 8px; }
.incident { padding: 4px 0 16px; }
.incident h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.incident--major h4 { color: var(--bad); }
.incident--minor h4 { color: var(--warn); }
.incident ul { list-style: none; margin: 0; padding: 0; }
.incident li { color: var(--fg-2); margin: 0 0 6px; }
.incident p { margin: 0; }
time { white-space: nowrap; }
.updated { margin-top: 40px; font-size: 14px; }
.foot { padding: 32px 0 48px; border-top: 1px solid var(--hair); margin-top: 24px; font-size: 14px; }

@media (max-width: 640px) {
  .top { padding: 32px 0 28px; gap: 14px; }
  .sep { display: none; }
  .title { font-size: 20px; width: 100%; order: 3; }
  .btn { margin-left: auto; }
  .groups { margin-top: 40px; }
  .bars { grid-template-columns: repeat(30, 1fr); }
  .bars .bar:nth-child(-n+60) { display: none; }
  .past { margin-top: 64px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0ms !important; } }
