/* base.css — page frame: MOTD banner, tmux window bar, tab sections, footer. */

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ── MOTD banner ─────────────────────────────────────────── */

.motd { margin-bottom: 26px; }

.wordmark {
  margin: 0;
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text);
}

.wordmark .glyph {
  color: var(--orange);
  margin-right: 0.12em;
}

.tagline {
  margin: 8px 0 18px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.motd-lines {
  margin: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
}

.login-line {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 12.5px;
}

.login-line b { color: var(--text); font-weight: 600; }

.led {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}
.led-on  { background: var(--ok);  box-shadow: 0 0 6px var(--ok); }
.led-off { background: var(--dim); }

/* ── tmux window bar (tabs) ──────────────────────────────── */

.winbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px;
  margin: 0 -6px 26px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.winbar::-webkit-scrollbar { display: none; }

.winbar .sess {
  color: var(--orange);
  padding: 4px 10px 4px 6px;
  font-weight: 700;
  flex: none;
}

.win {
  flex: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 2px;
}

.win:hover { color: var(--text); background: var(--raised); }

.win[aria-selected="true"] {
  background: var(--orange);
  color: #101214;
  font-weight: 700;
}

.win[aria-selected="true"]::after { content: "*"; }

.winbar .who {
  margin-left: auto;
  padding: 4px 6px;
  color: var(--dim);
  font-size: 12px;
  flex: none;
}
.winbar .who b { color: var(--ok); font-weight: 600; }

/* ── tab sections ────────────────────────────────────────── */

.tab[hidden] { display: none; }

.lede {
  margin: 0 0 22px;
  color: var(--text);
  max-width: 72ch;
}

h2 {
  margin: 34px 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

h2::before { content: "## "; color: var(--orange); }

h2 .sub {
  text-transform: none;
  letter-spacing: 0;
  color: var(--dim);
  font-weight: 400;
  font-size: 12.5px;
  margin-left: 8px;
}

h3 {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
}

p { margin: 0 0 12px; max-width: 76ch; }

.dim { color: var(--dim); }
.hint { color: var(--dim); font-size: 12px; margin-top: -6px; }

/* numbered install steps — a real sequence, so numbers carry meaning */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 44px;
  border-left: 1px solid var(--line);
  margin-left: 14px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -14px; top: -2px;
  width: 26px; height: 26px;
  line-height: 26px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  border-radius: 2px;
}

/* ── sign-in gate ────────────────────────────────────────── */

.gate {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 24px;
  max-width: 560px;
}
.gate[hidden] { display: none; }
.gate-head { color: var(--text); margin-bottom: 14px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── footer ──────────────────────────────────────────────── */

.foot {
  margin-top: 70px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 12px;
}

/* ── small screens ───────────────────────────────────────── */

@media (max-width: 560px) {
  .wrap { padding: 20px 14px 40px; }
  .winbar .who { display: none; }
  .steps > li { padding-left: 30px; }
}
