/* The outages page: a globe of dots on a black stage, with the list beside it. Tokens, text styles, header and footer
   come from style.css. Red is the only colour and it means an outage; green marks a fresh copy. */
.wrap.wide { max-width: 1180px; }
.oh { max-width: 680px; }
.oh h1 { margin-top: var(--sp-100); }
@media (min-width: 768px) { .oh h1 { font-size: 48px; line-height: 48px; } }
.wrap .status { display: flex; align-items: center; gap: var(--sp-75); margin: var(--sp-300) 0 0; min-height: 16px; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--decor); transition: background-color 300ms var(--ease); }
.status.live::before { background: var(--safe); }
.status.down::before { background: var(--help); }

.world { display: grid; gap: var(--sp-400); margin-top: var(--sp-500); }
@media (min-width: 1024px) { .world { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-600); align-items: start; } }

/* The stage is clean black, so the page's dot lattice does not show through the globe */
.stage { position: relative; background: #000; box-shadow: 0 0 0 var(--sp-200) #000; }
#globe { display: block; width: 100%; aspect-ratio: 1 / 1; touch-action: pan-y; cursor: grab; }
#globe.drag { cursor: grabbing; }
#globe.flat { cursor: default; }
@media (min-width: 768px) { #globe { aspect-ratio: 4 / 3; } }
.wrap .readout {
  position: absolute; left: 0; top: 0; max-width: 100%; margin: 0; padding: var(--sp-75) var(--sp-100); border-radius: var(--r-md);
  background: rgba(36, 36, 36, 0.92); font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase;
}
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-200); margin-top: var(--sp-200); }
.seg { display: inline-flex; gap: var(--sp-50); padding: var(--sp-50); border-radius: var(--r-lg); background: var(--s1); }
.seg-b {
  height: 40px; padding: 0 var(--sp-200); border: 0; border-radius: 4px; background: transparent; color: var(--dim); cursor: pointer;
  font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease);
}
.seg-b:hover { color: var(--fg); }
.seg-b:active { transform: scale(0.98); }
.seg-b[aria-pressed="true"] { background: var(--s4); color: var(--fg); }
.wrap .legend { display: flex; flex-wrap: wrap; gap: var(--sp-75) var(--sp-200); margin: 0; padding: 0; list-style: none; }
.wrap .legend li { display: inline-flex; align-items: center; gap: var(--sp-75); margin: 0; }
.k { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--help); }
.k2 { opacity: 0.7; }
.k1 { opacity: 0.45; }

/* The list */
.wrap .side h2 { margin-top: 0; }
.wrap .rows { margin: var(--sp-200) 0; padding: 0; list-style: none; }
.wrap .rows li { margin: 0; }
.row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-100); width: 100%; min-height: 48px;
  padding: var(--sp-75) var(--sp-100); border: 0; border-radius: var(--r-md); background: transparent; color: var(--fg); text-align: left; cursor: pointer;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.row:hover { background: var(--s1); }
.row:active { transform: scale(0.98); }
.row[aria-pressed="true"] { background: var(--s3); }
.rk { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--faint); }
.nm { font-size: 16px; line-height: 24px; font-weight: 500; overflow-wrap: anywhere; }
.sub { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--faint); }
.meta { display: inline-flex; align-items: center; gap: var(--sp-100); font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.lv { display: inline-flex; gap: var(--sp-25); }
.lv span { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--s4); }
.lv3 span, .lv2 span:nth-child(-n+2), .lv1 span:first-child { background: var(--help); }
/* While the list loads: rows shaped like the real ones */
.rows .sk { display: flex; align-items: center; min-height: 48px; padding: var(--sp-75) var(--sp-100); }
.rows .sk span { width: 64%; height: 16px; border-radius: 4px; background: var(--s2); animation: sk 1200ms var(--ease) infinite alternate; }
.rows .sk:nth-child(even) span { width: 44%; }
@keyframes sk { from { opacity: 0.4; } to { opacity: 1; } }
.problem { margin: var(--sp-200) 0; padding: var(--sp-300); border-radius: var(--r-lg); background: var(--s1); }
.wrap .problem p { margin-top: 0; color: var(--dim); }

/* The reason this page is on a messaging app's site, and the fine print */
.pitch { max-width: 680px; margin-top: var(--sp-700); padding: var(--sp-300); border-radius: var(--r-lg); background: var(--s1); }
.wrap .pitch h2 { margin-top: 0; }
.wrap .pitch p { color: var(--dim); }
.read { max-width: 680px; margin-top: var(--sp-600); }
.wrap .read li { color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  .rows .sk span { animation: none; }
  .row, .seg-b { transition: background-color 300ms var(--ease), color 300ms var(--ease); }
  .row:active, .seg-b:active { transform: none; }
}
