/* The install guide: one window, with numbered steps like the mod's guide book.
   Builds on /site.css (tokens, site bar, windows, buttons, tips, keys, footer). */

/* A narrower window than the homepage's: one column of reading, like the guide book. */
.guide { max-width: 960px; padding-top: 16px; }
.guide .pane { background: var(--panel-dark); padding: 32px; }
.lede { font-size: 18px; }
.faint { color: var(--muted); font-size: 15px; }
.guide h2 { margin: 0 0 12px; }

/* Lists: grey square bullets; numbered lists with green numbers. */
.guide ul { list-style: none; margin: 0 0 14px; padding: 0; }
.guide ul li { position: relative; padding-left: 18px; margin: 6px 0; }
.guide ul li::before { content: ''; position: absolute; left: 2px; top: .66em; width: 6px; height: 6px; background: var(--dim); }
.guide ol.sub { margin: 0 0 14px; padding-left: 26px; }
.guide ol.sub > li { margin: 8px 0; padding-left: 4px; }
.guide ol.sub > li::marker { color: var(--accent); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }

/* Paths and file names in the chat box's colours; click a path to copy it. */
.guide code { font: 15px var(--plain); color: #e0e0e0; background: #000; border: 2px solid #a0a0a0; padding: 1px 7px; white-space: nowrap; }
.guide code.copy { display: inline-block; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.guide code.copy:hover { border-color: #fff; }
.guide code.copy.copied { border-color: var(--accent); }

/* The short version: a tip with a small white title. */
.quick { margin: 22px 0 8px; }
.quick h2 { margin: 0 0 6px; font: 17px/1.3 var(--pixel); color: var(--text); }
.quick ul { margin-bottom: 8px; }
.tip > p + p { margin-top: 8px; }
/* A tip with a heading: the heading is its gold label, so the bold words inside stay white. */
.tip > h3 { margin: 0 0 6px; font: 700 17px/1.4 var(--plain); color: var(--gold); }
.note > p > b:first-child { color: #fff; margin-right: 0; }

/* ---------- steps: plain sections, each number in a square badge like the guide book's
   (the number in the plain font, as the owner asked) */
.steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; }
.step { position: relative; counter-increment: step; padding-left: 66px; margin-bottom: 44px; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center;
  border: 2px solid var(--accent); background: var(--panel-dark); font: 700 22px var(--plain); color: var(--gold);
}
.step > h2 { display: flex; align-items: center; min-height: 46px; margin-bottom: 8px; }

/* Where the mods folder is: one row per system, its name on the left. */
.os { display: grid; gap: 4px; margin: 12px 0 0; }
.os-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; background: var(--row); padding: 12px 16px; }
.os-card h3 { grid-row: 1 / 10; margin: 0; line-height: 1.65; }
.os-card p { grid-column: 2; margin: 0 0 6px; }
.os-card p:last-child { margin-bottom: 0; }

.extra { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--rule); }
.steps + .extra { margin-top: 0; }

/* Something went wrong: the problem on the left in white, the fix beside it. */
.rows.trouble th { width: 34%; background: var(--row); padding: 9px 14px; color: #fff; font-size: 17px; font-weight: 700; vertical-align: top; }

@media (max-width: 860px) {
  .guide { padding-top: 8px; }
  .guide .pane { padding: 16px 12px; }
  .step { padding-left: 58px; }
  .guide code { white-space: normal; overflow-wrap: anywhere; }
  .os-card { grid-template-columns: 1fr; }
  .os-card h3 { grid-row: auto; margin-bottom: 6px; }
  .os-card p { grid-column: 1; }
  .rows.trouble, .rows.trouble tbody, .rows.trouble tr, .rows.trouble th, .rows.trouble td { display: block; width: auto; }
  .rows.trouble tr { margin-bottom: 4px; }
  .rows.trouble th { padding-bottom: 0; }
}
/* Small phones: only the heading sits beside the badge; the step's text uses the full width. */
@media (max-width: 520px) {
  .step { padding-left: 0; }
  .step > h2 { padding-left: 58px; }
}
