/* Keep the first-screen surface on the hero, not on the full document. */
.screen {
  background: var(--hero-top);
}

.screen .hero {
  background: linear-gradient(180deg, var(--hero-top) 18%, var(--hero-bottom) 100%);
}

.screen main > section.wrap {
  background: var(--bg-panel);
  border-block-start: 1px solid var(--line-soft);
}

.screen main {
  background: var(--bg);
}

.home-heading {
  max-width: 72ch;
  margin-bottom: clamp(22px, 3.5vw, 40px);
}

.home-heading p:last-child,
.home-notes p {
  color: var(--text-muted);
}

.home-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin-block: 26px 18px;
}

.home-notes > div {
  min-width: 0;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--border);
}

.home-end {
  margin-block: 18px 0;
}

.home-end a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
}

.home-end a:hover {
  text-decoration-thickness: 2px;
}

.plan-card .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

/* The generated board grows in document flow as routes are injected. */
.server-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-block-start: 14px;
}

.server-status:empty {
  display: none;
}

.srv-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) minmax(0, auto) minmax(0, auto) minmax(0, auto);
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  box-shadow: var(--hl-top);
}

.srv-row > * {
  min-width: 0;
}

.srv-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-round);
  background: var(--success);
  box-shadow: 0 0 0 3px var(--status-ring);
}

.srv-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 1.5rem;
  border-radius: var(--r-xs);
}

.srv-name {
  font-weight: 500;
}

.srv-type {
  justify-self: start;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  font-size: .75rem;
}

.srv-ms,
.srv-bw {
  justify-self: end;
  color: var(--text-muted);
  font: var(--type-label)/1.4 var(--font-mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .server-status {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .home-notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .srv-row {
    grid-template-columns: auto auto minmax(0, 1fr) minmax(0, auto);
  }

  .srv-ms {
    grid-column: 3;
    justify-self: start;
  }

  .srv-bw {
    grid-column: 4;
  }
}