@charset "UTF-8";

/* ------------------------------------------------------------ *
 * Tokens — dark theme
 * ------------------------------------------------------------ */

:root {
  --font-display: "Space Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --bg: #0a0b0c;
  --surface: #0a0b0c;
  --paper: #131416;
  --paper-raised: #17181b;

  --ink: #f4f5f6;
  --ink-soft: #a7abb1;
  --ink-faint: #6b6f75;

  --line: #232427;
  --line-strong: #313337;

  --green: #3ddc84;
  --green-bg: rgba(61, 220, 132, 0.12);
  --red: #ff5c5c;
  --red-bg: rgba(255, 92, 92, 0.14);
  --amber: #f0a93a;
  --amber-bg: rgba(240, 169, 58, 0.14);

  --radius-s: 6px;
  --radius-m: 10px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);

  --content-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: default;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.a11y-focus-indicators :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------ *
 * Layout shell
 * ------------------------------------------------------------ */

.layout-content {
  min-height: 100vh;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ------------------------------------------------------------ *
 * Masthead
 * ------------------------------------------------------------ */

.masthead-container {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.masthead {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-container {
  display: flex;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
}

.logo-badge img {
  height: 24px;
  width: auto;
  display: block;
}

.updates-dropdown-container {
  margin-left: auto;
}

.updates-dropdown-container .show-updates-dropdown {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.updates-dropdown-container .show-updates-dropdown:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
  background: var(--paper);
}

.subscribe-text-short {
  display: none;
}

@media (max-width: 420px) {
  .subscribe-text-full {
    display: none;
  }
  .subscribe-text-short {
    display: inline;
  }
}

/* ------------------------------------------------------------ *
 * Status banner — filled card, black when operational, red when down
 * ------------------------------------------------------------ */

.page-status {
  padding: 32px 0 8px;
}

.page-status-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper-raised);
  box-shadow: var(--shadow-card);
  padding: 30px 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-status .status {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.page-status .last-updated-stamp {
  display: block;
  color: var(--ink-faint);
  min-height: 1em;
  padding-left: 19px;
}

.page-status .status::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 10px;
  flex: none;
}

.page-status.status-none .page-status-inner {
  border-color: var(--line-strong);
}

.page-status.status-none .status::before {
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-bg);
}

.page-status.status-critical .page-status-inner {
  background: var(--red-bg);
  border-color: rgba(255, 92, 92, 0.35);
}

.page-status.status-critical .status {
  color: var(--red);
}

.page-status.status-critical .status::before {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 92, 92, 0.22);
}

.page-status.status-critical .last-updated-stamp {
  color: #ffb3b3;
}

/* ------------------------------------------------------------ *
 * Components / services section
 * ------------------------------------------------------------ */

.components-section {
  margin-bottom: 48px;
}

.components-uptime-link {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.components-uptime-link var {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
}

.components-container.one-column {
  display: block;
}

.component-container {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.component-inner-container {
  padding: 18px 20px;
}

.component-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.component-inner-container .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-right: auto;
}

.component-status {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--green-bg);
  color: var(--green);
}

.status-icon-button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex: none;
  background: var(--green-bg);
  color: var(--green);
}

.status-icon-button::before {
  content: none;
}

/* status color states, driven by JS toggling these classes */
.status-red .component-status,
.status-red .status-icon-button {
  background: var(--red-bg);
  color: var(--red);
}

.status-orange .component-status,
.status-orange .status-icon-button,
.status-yellow .component-status,
.status-yellow .status-icon-button {
  background: var(--amber-bg);
  color: var(--amber);
}

.status-blue .component-status,
.status-blue .status-icon-button {
  background: var(--paper-raised);
  color: var(--ink-soft);
}

.shared-partial.uptime-90-days-wrapper {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 16px;
  position: relative;
}

.uptime-tooltip {
  position: relative;
  margin-top: 14px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  padding: 12px 36px 12px 14px;
}

.uptime-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: clamp(16px, var(--arrow-left, 20px), calc(100% - 16px));
  width: 12px;
  height: 12px;
  background: var(--paper-raised);
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: translateX(-50%) translateY(50%) rotate(45deg);
}

.uptime-tooltip-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 17px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

.uptime-tooltip-close:hover {
  color: var(--ink);
  background: var(--line);
}

.uptime-tooltip-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.uptime-tooltip-body {
  font-size: 13px;
  color: var(--ink-soft);
}

.availability-time-line-graphic {
  width: 100%;
  height: 34px;
  display: block;
}

.availability-time-line-graphic .uptime-day {
  rx: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.legend {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-faint);
}

.legend .legend-item {
  white-space: nowrap;
}

.legend .legend-item:not(.light) {
  color: var(--ink-soft);
  font-weight: 500;
}

.legend #uptime-value {
  color: var(--ink);
  font-weight: 600;
}

.legend .spacer {
  flex: 1;
}

/* ------------------------------------------------------------ *
 * Incident history
 * ------------------------------------------------------------ */

.incidents-list {
  margin-bottom: 48px;
}

.incidents-list #past-incidents {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
}

.no-incidents {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
  padding: 28px 20px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
}

.status-day {
  margin-bottom: 24px;
}

.status-day .date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.incident-container {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.incident-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.incident-title.impact-critical {
  color: var(--red);
}

.updates-container .update {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.updates-container .update:first-child {
  border-top: 0;
  padding-top: 0;
}

.updates-container .update strong {
  color: var(--ink);
  font-weight: 600;
}

.updates-container .update small {
  color: var(--ink-faint);
  font-size: 12px;
}

/* ------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------ */

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink-faint);
}

.page-footer-brand {
  display: flex;
  align-items: center;
}

.page-footer-mark {
  height: 24px;
  width: auto;
}

.page-footer .history-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.page-footer .history-footer-link:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
  background: var(--paper-raised);
}

/* ------------------------------------------------------------ *
 * Type scale
 * ------------------------------------------------------------ */

.font-largest {
  font-size: 18px;
}

.font-large {
  font-size: 26px;
}

.font-regular {
  font-size: 14px;
}

.font-small {
  font-size: 12.5px;
}

/* ------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------ */

@media (max-width: 560px) {
  .masthead {
    padding: 16px 20px;
  }

  .container {
    padding: 0 20px 48px;
  }

  .page-status {
    padding: 24px 0 8px;
  }

  .page-status-inner {
    padding: 24px 20px;
  }

  .page-status .status {
    font-size: 21px;
  }

  .page-footer {
    padding: 16px 18px;
  }
}
