/**
 * Telno terminals — product layer only.
 *
 * The tokens, cards, pills, chips and buttons come from /ui/console.css, the same
 * sheet the three consoles serve, so the landing page cannot look like a different
 * family. What is left here is the page's own shape: no sidebar, because this page
 * has one job and no sections to navigate.
 */

.hub-body {
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--bg-glow);
  color: var(--text);
  font-family: var(--font);
}

.hub {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 100vh;
}

.hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-brand .brand-mark {
  font-size: 24px;
  color: var(--accent-strong);
}

.hub-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hub-brand .brand-name {
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 17px;
}

.hub-brand .brand-sub {
  font-size: 12px;
  color: var(--text-3);
  text-transform: lowercase;
  letter-spacing: 0.06em;
}

.hub-head-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.hub-lead h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.02em;
  font-weight: 640;
}

.hub-lead p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.55;
}

/*
 * The model badge is a square tag, not a bubble: it carries a word (T54W, HT802,
 * T750) rather than a one-digit port number, so it takes the width of its own text
 * and keeps square corners instead of the round badge the consoles use for numbers.
 */
.hub-card .port-no {
  width: auto;
  min-width: 26px;
  padding: 0 7px;
  border-radius: 0;
  letter-spacing: 0.02em;
}

/* Equal height, so one console being down does not make the row look broken. */
.hub-card {
  display: flex;
  flex-direction: column;
}

.hub-card .card-actions {
  margin-top: auto;
}

.hub-card.is-down {
  border-color: rgba(255, 107, 107, 0.22);
}

.hub-card-body {
  padding: 4px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hub-line {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: baseline;
}

.hub-line .k {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hub-line .v {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hub-error {
  margin: 2px 0 0;
  color: var(--bad);
  line-height: 1.5;
}

.hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}

#how {
  margin: 0;
}

/* A single card that has to sit in a three-column grid (an error, an empty state). */
.span-all {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .hub-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .hub-lead h1 {
    font-size: 24px;
  }
}
