/* Cardvoo status page. System fonts only (nothing is fetched from another host, so the page works
   when everything else is down). Colors follow the approved status mockup, with a dark variant. */
:root {
  --bg: #fafafa;
  --card: #fff;
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #62626b;
  --border: #e2e2e6;
  --link: #0e6f7c;
  --ok: #1f7a4d;
  --ok-bg: #e3f3ea;
  --ok-text: #14573a;
  --warn: #8a5200;
  --warn-bg: #fff1d6;
  --warn-text: #4a2f00;
  --bad: #b3261e;
  --bad-bg: #fdeceb;
  --maint: #0e6f7c;
  --maint-bg: #e0f2f4;
  --maint-text: #0b5560;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --card: #1b1b1f;
    --text: #f4f4f5;
    --text-2: #d4d4d8;
    --muted: #a1a1aa;
    --border: #2e2e34;
    --link: #5cc4d1;
    --ok: #5fd096;
    --ok-bg: #12301f;
    --ok-text: #b8f0d2;
    --warn: #f0b04a;
    --warn-bg: #3a2a08;
    --warn-text: #ffe2ad;
    --bad: #ff8a80;
    --bad-bg: #3a1513;
    --maint: #5cc4d1;
    --maint-bg: #0f2c31;
    --maint-text: #bfe9ef;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
h1,
h2 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  margin: 0;
}
h1 {
  font-size: 24px;
}
h2 {
  font-size: 18px;
  margin: 22px 0 12px;
}
a {
  color: var(--link);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.banner-checking {
  background: var(--border);
  color: var(--text-2);
}
.banner-operational {
  background: var(--ok-bg);
  color: var(--ok-text);
}
.banner-degraded {
  background: var(--warn-bg);
  color: var(--warn-text);
}
.banner-outage {
  background: var(--bad-bg);
  color: var(--bad);
}
.banner-maintenance {
  background: var(--maint-bg);
  color: var(--maint-text);
}
.notice {
  margin: 12px 0 0;
  font-size: 14px;
}

.components {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.detail {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.state-operational {
  color: var(--ok);
}
.state-degraded {
  color: var(--warn);
}
.state-outage {
  color: var(--bad);
}
.state-maintenance {
  color: var(--maint);
}
@media (max-width: 480px) {
  .card {
    padding: 18px;
  }
  .row {
    align-items: flex-start;
  }
  .state {
    white-space: normal;
  }
}

.window {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
}
.tl-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--warn);
  flex: none;
}
.tl-body strong {
  font-size: 15px;
}
.when {
  font-size: 13px;
  color: var(--muted);
}
.tl-text {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 2px;
}
.past {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}
.checked {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
