/* Server Setup Generator.
   The badge colours carry meaning, so they are also distinguished by text —
   colour alone would fail anyone who cannot see the difference between the
   green and the grey, and the difference is the whole point of the page. */

.ss-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.ss-controls label { display: block; font-weight: 600; margin-bottom: .4rem; }
.ss-controls select {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--border, #d8dbe3);
  background: var(--surface, #fff);
  color: inherit;
}

.ss-summary { margin-bottom: 1.5rem; }
.ss-summary h2 { margin: 0 0 .4rem; }

.ss-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin: 1rem 0 0;
}
.ss-facts div {
  background: var(--surface-2, #f4f6fa);
  border-radius: 10px;
  padding: .7rem .85rem;
}
.ss-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.ss-facts dd { margin: .25rem 0 0; font-weight: 600; word-break: break-all; }

.ss-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ss-step {
  border: 1px solid var(--border, #d8dbe3);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: var(--surface, #fff);
}
.ss-step-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ss-step-head h3 { margin: 0; font-size: 1.05rem; flex: 1 1 auto; }
.ss-n {
  flex: 0 0 auto;
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent, #1f3a8a);
  color: #fff;
  font-weight: 700; font-size: .85rem;
}
.ss-why { margin: .5rem 0 .75rem; opacity: .85; }

.ss-cmd {
  background: #0f1420;
  color: #e6edf7;
  padding: .85rem 1rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
}
.ss-cmd code { white-space: pre; }
.ss-copy {
  margin-top: .5rem;
  font: inherit; font-size: .85rem;
  padding: .35rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--border, #d8dbe3);
  background: var(--surface-2, #f4f6fa);
  color: inherit;
  cursor: pointer;
}
.ss-copy:hover { background: var(--surface, #fff); }
.ss-expect { margin: .6rem 0 0; font-size: .9rem; opacity: .85; }
.ss-none { opacity: .7; font-style: italic; margin: .25rem 0 0; }

.ss-badge {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .22rem .55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ss-badge-ok   { background: #0f7b3d; color: #fff; }
.ss-badge-part { background: #8a5b00; color: #fff; }
.ss-badge-doc  { background: transparent; color: inherit; border-color: var(--border, #d8dbe3); opacity: .8; }
.ss-badge-warn { background: #a11d1d; color: #fff; }

.ss-panel {
  border: 1px solid var(--border, #d8dbe3);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
  background: var(--surface, #fff);
}
.ss-panel h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.ss-panel ul { margin: 0; padding-left: 1.15rem; }
.ss-panel li { margin-bottom: .5rem; }
.ss-ports code { font-weight: 700; }
.ss-gotchas { border-left: 4px solid #8a5b00; }
.ss-provenance { border-left: 4px solid #0f7b3d; }

.ss-refuse {
  border: 1px solid #a11d1d;
  border-left-width: 4px;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: var(--surface, #fff);
}
.ss-refuse h2 { margin: 0 0 .5rem; font-size: 1.1rem; }

@media (prefers-color-scheme: dark) {
  .ss-controls select,
  .ss-step,
  .ss-panel,
  .ss-refuse { background: rgba(255, 255, 255, .03); }
  .ss-facts div { background: rgba(255, 255, 255, .05); }
  .ss-copy { background: rgba(255, 255, 255, .06); }
}

/* Captured terminal sessions.
   Rendered as selectable text in a terminal frame rather than as image files:
   a reader can copy a command out of it, a screen reader can read it, and it
   reflows on a phone. An image of a terminal does none of those. */
.ss-session { border-left:4px solid var(--accent, #1f3a8a); }
.ss-shot { margin: 1rem 0 1.25rem; }
.ss-shot-head { display:flex; align-items:center; gap:.55rem; margin-bottom:.45rem; flex-wrap:wrap; }
.ss-shot-n {
  flex:0 0 auto; width:1.5rem; height:1.5rem; display:grid; place-items:center;
  border-radius:50%; background:var(--accent,#1f3a8a); color:#fff; font-size:.78rem; font-weight:700;
}
.ss-shot-failed .ss-shot-n { background:#a11d1d; }
.ss-shot-note { margin:.4rem 0 0; font-size:.88rem; opacity:.8; }

.ss-term { border-radius:10px; overflow:hidden; border:1px solid #1d2637; background:#0f1420; }
.ss-term-bar { display:flex; gap:.4rem; padding:.5rem .7rem; background:#182034; }
.ss-term-bar i { width:.7rem; height:.7rem; border-radius:50%; background:#3b4356; }
.ss-term-bar i:nth-child(1){ background:#ff5f57; }
.ss-term-bar i:nth-child(2){ background:#febc2e; }
.ss-term-bar i:nth-child(3){ background:#28c840; }
.ss-term pre { margin:0; padding:.85rem 1rem; overflow-x:auto; }
.ss-term code {
  color:#dbe4f2; font-size:.85rem; line-height:1.55; white-space:pre;
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ss-prompt { color:#7ee2a8; font-weight:700; user-select:none; }
.ss-fail { color:#ff9d9d; }
.ss-session-other { border-left-color: var(--border, #d8dbe3); opacity: .85; }

/* Screenshot gallery. */
.ss-shots { border-left:4px solid #0f7b3d; }
.ss-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:1rem; margin-top:.9rem; }
.ss-fig { margin:0; border:1px solid var(--border,#d8dbe3); border-radius:12px; overflow:hidden; background:var(--surface,#fff); }
.ss-fig img { display:block; width:100%; height:auto; }
.ss-fig a { display:block; line-height:0; }
.ss-fig figcaption { padding:.6rem .8rem; font-size:.86rem; line-height:1.45; }
.ss-fig-kind {
  display:inline-block; margin-right:.4rem; padding:.1rem .45rem; border-radius:5px;
  font-size:.68rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  background:#0f7b3d; color:#fff;
}
.ss-fig-terminal .ss-fig-kind { background:#1f3a8a; }
