/* Nextwaves tenant status page. Plain, typographic; light by default. */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-muted: #525252;
  --fg-subtle: #8f8f8f;
  --rule: #ebebeb;
  --link: #0a0a0a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --fg-muted: #a3a3a3;
    --fg-subtle: #6b6b6b;
    --rule: #1f1f1f;
    --link: #f5f5f5;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px 40px;
}

.top .logo img {
  display: block;
  height: 60px;
  width: auto;
}

.content {
  align-self: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.lead a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.actions[hidden] { display: none; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--fg);
  cursor: pointer;
}

.cta .arrow { transition: transform 150ms ease-out; }
.cta:hover .arrow { transform: translateX(3px); }

.cta.quiet {
  color: var(--fg-muted);
  border-bottom-color: var(--rule);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 2px;
}

.meta {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--fg-subtle);
}

.meta:empty { display: none; }

.bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--fg-subtle);
}

.bottom #tenant-name { color: var(--fg-muted); }
.bottom .sep:last-child, .bottom #tenant-host:empty { display: none; }

.tenant-logo {
  height: 18px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
}

.tenant-logo[hidden] { display: none; }

.spinner {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  border-top-color: var(--fg);
  animation: spin 0.8s linear infinite;
}

.spinner[hidden] { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .cta .arrow { transition: none; }
}

@media (max-width: 560px) {
  .page { padding: 24px 20px; }
  .top .logo img { height: 48px; }
  .bottom { flex-direction: column; align-items: flex-start; gap: 2px; }
  .bottom .sep { display: none; }
  .content { align-self: start; padding-top: 18vh; }
  h1 { font-size: 28px; }
  .lead { font-size: 16px; }
}
