/* TeamTV status page — colors from teamtv_sass/scss/variables.scss */
:root {
  --violet: #5650a3;
  --violet-dark: #403871;
  --azure: #28e89e;
  --azure-dark: #26be85;
  --yellow: #ffc107;
  --red: #dc3545;
  --text: #343a40;
  --muted: #6c757d;
  --bg: #f3f3f8;
  --card: #fff;
  --line: #e9e8f3;
  --shadow: 0 2.9px 30.5px rgba(0, 0, 0, .04), 0 18.4px 105px rgba(0, 0, 0, .05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  letter-spacing: .25px;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--azure-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.hero {
  background: linear-gradient(160deg, var(--violet) 0%, var(--violet-dark) 100%);
  color: #fff;
  padding: 32px 0 88px;
}

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

.banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 48px;
}

.banner h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  font-weight: 900;
}

.banner h1 { margin-top: 2px; margin-bottom: 0; }

.dot {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .15);
}
.is-degraded .dot { background: var(--yellow); animation: pulse 2s infinite; }
.is-down .dot { background: var(--red); animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .15); }
  50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, .05); }
}

/* Cards */
main { margin-top: -56px; }

.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--violet);
}

/* Message */
.message p { margin: 0 0 12px; font-size: 1.1rem; }
.message .links a { text-decoration: underline; }
.message .signoff { margin: 20px 0 0; font-weight: 700; color: var(--violet); }

/* Services */
.services { list-style: none; margin: 0; padding: 0; }

.services li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.services li:first-child { border-top: 0; }

.services .name { font-weight: 700; }

.services .state {
  flex: none;
  font-size: .875rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.services .ok .state { color: #1a7f58; background: #e3fbf1; }
.services .degraded .state { color: #8a6500; background: #fff4d1; }
.services .down .state { color: #a71d2a; background: #fbe3e5; }

/* Updates */
.updates { list-style: none; margin: 0; padding: 0; }

.updates li {
  position: relative;
  padding: 0 0 16px 20px;
  border-left: 2px solid var(--line);
}
.updates li:last-child { padding-bottom: 0; }
.updates li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
}

.updates time { font-size: .875rem; color: var(--muted); }
.updates p { margin: 4px 0 0; }

.help { text-align: center; color: var(--muted); }

.footer {
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
  padding-top: 8px;
  padding-bottom: 32px;
}

@media (max-width: 480px) {
  .services li { flex-direction: column; align-items: flex-start; gap: 6px; }
}
