/* Install block — platform/arch seg row + terminal command + a platform-
   conditional "what happens" note. Seg/terminal styling ships in
   @elements/style (.seg, .seg-row, .terminal). */

.install-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.install-seg {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.install-detect {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-dim);
  line-height: 1.6;
}

.install-detect-reset {
  margin-left: 0.375rem;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}

.install-detect-reset:hover { text-decoration: underline; }

/* Kept in the layout at all times so the detect line's size/position never
   shifts; only hidden. visibility (not display) preserves the reserved
   space and takes the Revert button out of the tab order while hidden. */
.install-detect-change.is-hidden {
  visibility: hidden;
}

.install-note {
  /* Recessed well, NOT the elevated --bg-soft: in dark mode --bg-soft collapses
     onto --terminal-bg (both --neutral-900) so the note read as primary as the
     command. --bg-canvas sits below the page in both themes, so the note recedes
     under the terminal instead of competing with it. */
  background: var(--bg-canvas);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-soft);
  line-height: 1.6;
  /* Push this a bit further from the help text so the help reads as
     "attached to the pills", not to the what-happens box. */
  margin-top: var(--space-3);
}

.install-note-label {
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  text-box-trim: trim-both; text-box-edge: cap alphabetic;
  letter-spacing: var(--tracking-widest);
  color: var(--ink-dim);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}

.install-note-body {
  margin: 0;
}
.install-note-body code {
  font-family: var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 0.0625rem 0.3125rem;
  border-radius: var(--radius-xs);
  color: var(--ink);
  font-size: 0.95em;
}
