/* Installation guide (install.js). Loaded before lab.css and content.css, like subscriptions.css,
   so every rule here uses its own ig- classes.
   The page is one column, 920px at most, in the middle of the screen: the head, then five boxes
   under each other (Dali, 11-13: "put every method of installing in its own collapsable container
   with a background"). A box is the browser's own <details> on the surface of the item page's
   boxes (.ct-box, .ct-facts in content.css: the same fill, hairline and corners, repeated here
   because this file loads first). Its heading row is the site's orange section heading with one
   muted line under it and an arrow that turns over when the box opens.
   A paragraph stops at 68 characters. Commands and paths wrap inside their box, so nothing
   scrolls sideways. The smallest text is 13px. */

.ig-page { margin: 0 auto; max-width: 920px; }
/* A title can be one long word (German: Installationsanleitung). On a phone it gets a size that
   fits 358px, and may break as a last resort. content.css sets the size for wider screens. */
.ig-head h1 { overflow-wrap: anywhere; }
.ig-lead { color: var(--wall, #dcdce2); font-size: 18px; line-height: 1.55; margin: 14px 0 0; max-width: 62ch; }
.ig-ops { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 8px 0 0; max-width: 68ch; }
.ig-back {
  align-items: center; color: #fff; display: inline-flex; font-size: 15px; font-weight: 700; gap: 6px; margin-top: 18px; text-decoration: underline;
  text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.ig-back svg { flex: none; height: 16px; width: 16px; }
.ig-back:hover { color: var(--flare); }

/* ---------- The five boxes ---------- */
.ig-body { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
.ig-fold { background: #0e0f15; border: 1px solid rgb(255 255 255 / .08); border-radius: 14px; min-width: 0; }
/* The whole heading row opens and closes the box. */
.ig-fold > summary { border-radius: 13px; cursor: pointer; display: block; list-style: none; padding: 22px 68px 22px 28px; position: relative; }
.ig-fold > summary::-webkit-details-marker { display: none; }
.ig-fold > summary::after {
  border-bottom: 2.5px solid var(--flare); border-right: 2.5px solid var(--flare); content: ""; height: 11px; margin-top: -9px; position: absolute; right: 32px; top: 50%;
  transform: rotate(45deg); transition: transform .2s; width: 11px;
}
.ig-fold[open] > summary::after { margin-top: -3px; transform: rotate(-135deg); }
.ig-fold > summary:hover .nb-heading { color: var(--flare-hover); }
.ig-fold > summary:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; }
/* The line a closed box shows: when you would pick this part. */
.ig-fold__hint { color: var(--muted); display: block; font-size: 15px; line-height: 1.5; margin-top: 8px; max-width: 62ch; }
.ig-fold__body { border-top: 1px solid var(--hair); padding: 24px 28px 28px; }
.ig-fold__body > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .ig-fold > summary::after { transition: none; } }

/* ---------- Inside a box ---------- */
.ig-body p { color: var(--wall, #dcdce2); font-size: 16px; line-height: 1.65; margin: 0 0 12px; max-width: 68ch; }
.ig-body p.ig-fine { color: var(--muted); font-size: 14px; line-height: 1.55; }
.ig-body p:last-child { margin-bottom: 0; }
/* A word of a command inside a sentence (content.css would make it 92% of the text around it). */
.ig-body p code { font-size: 13.5px; }
.ig-h3 { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 32px 0 10px; }
.ig-h4 { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; }

/* Steps: an orange number in a ring, the step's title, then what to do. */
.ig-steps { counter-reset: ig-step; list-style: none; margin: 18px 0 0; padding: 0; }
.ig-step { counter-increment: ig-step; padding-left: 50px; position: relative; }
.ig-step + .ig-step { border-top: 1px solid var(--hair); margin-top: 20px; padding-top: 20px; }
.ig-step::before {
  align-items: center; border: 2px solid var(--flare); border-radius: 50%; color: var(--flare); content: counter(ig-step); display: flex; font-size: 16px; font-weight: 800;
  height: 34px; justify-content: center; left: 0; line-height: 1; position: absolute; top: 0; width: 34px;
}
.ig-step + .ig-step::before { top: 20px; }
.ig-step h3 { align-items: center; color: #fff; display: flex; font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; min-height: 34px; }

/* A command or a path with its Copy button. The text wraps; the box never scrolls. */
.ig-cmd { align-items: stretch; background: #08080b; border: 1px solid var(--hair-strong); border-radius: 8px; display: flex; margin: 10px 0 12px; max-width: 560px; min-width: 0; }
.ig-cmd code { align-self: center; background: none; border: 0; border-radius: 0; color: #fff; flex: 1 1 auto; font-size: 15.5px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; padding: 11px 14px; white-space: normal; }
.ig-copy {
  align-items: center; background: rgb(255 255 255 / .06); border: 0; border-left: 1px solid var(--hair-strong); border-radius: 0 7px 7px 0; color: #fff; cursor: pointer;
  display: inline-flex; flex: none; font: 700 13px/1 var(--font); gap: 6px; min-height: 44px; padding: 0 14px;
}
.ig-copy svg { flex: none; height: 16px; width: 16px; }
/* Copied: a green tick takes the place of the two sheets, for 1.8 seconds (install.js). */
.ig-copy__ok, .ig-copy.is-done .ig-copy__icon { display: none; }
.ig-copy.is-done .ig-copy__ok { display: block; }
/* Room for "Copied", so the command beside it does not move when the word changes. */
.ig-copy [data-copy-label] { min-width: 3.6em; text-align: left; }
.ig-copy:hover { background: rgb(255 255 255 / .12); }
.ig-copy:focus-visible { outline: 2px solid var(--flare); outline-offset: -3px; }
.ig-copy.is-done { color: var(--ok); }
/* The icon alone, where six boxes stand together: 46 by 44 px to press. Its name for a screen
   reader is "Copy <the command>"; a mouse gets "Copy" as its tooltip. */
.ig-copy--icon { justify-content: center; padding: 0; width: 46px; }
.ig-copy--icon svg { height: 18px; width: 18px; }

/* One command or folder per plugin: six boxes, each under its plugin's name. Two across; one
   across on a phone. The text is 14px, smaller than in a box that stands alone (15.5px), so that
   the longest folder (plugins/FreeMinecraftModels/imports) stays on one line inside a step. */
.ig-six { display: grid; gap: 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 12px 0 14px; padding: 0; }
.ig-six li { min-width: 0; }
.ig-six__name { color: #fff; display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-bottom: 5px; }
.ig-six .ig-cmd { margin: 0; max-width: none; }
.ig-six .ig-cmd code { font-size: 14px; padding: 12px; }

.ig-list { color: var(--wall, #dcdce2); display: grid; list-style: disc; font-size: 16px; gap: 8px; grid-template-columns: minmax(0, 1fr); line-height: 1.6; margin: 0 0 14px; max-width: 68ch; padding-left: 20px; }
.ig-list li::marker { color: var(--flare); }
.ig-step .ig-list:last-child { margin-bottom: 0; }
/* Where the zip comes from: each way, then its link on a line of its own. */
.ig-list--src { gap: 12px; }
.ig-go { display: block; margin-top: 2px; }
.ig-out svg { display: inline-block; height: .95em; margin-left: 4px; vertical-align: -.12em; width: .95em; }

/* Automatic updates: what it does beside what it does not do. */
.ig-duo { display: grid; gap: 14px 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 14px; }
.ig-duo .ig-list { font-size: 15.5px; margin-bottom: 0; }

/* When it does not show up: what you see, then what to do, a hairline between two causes. */
.ig-causes { list-style: none; margin: 0; padding: 0; }
.ig-causes li { padding: 14px 0; }
.ig-causes li + li { border-top: 1px solid var(--hair); }
.ig-causes li:first-child { padding-top: 0; }
.ig-causes h3 { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.3; margin: 0 0 4px; }
.ig-links { display: grid; font-size: 16px; gap: 10px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0 0 18px; padding: 0; }

.ig-end { margin: 40px 0 0; }
.ig-end .btn { max-width: 100%; white-space: normal; }

@media (max-width: 680px) {
  .ct .ig-head h1.nb-heading { font-size: clamp(30px, 8.6vw, 40px); }
  .ig-lead { font-size: 16.5px; }
  .ig-body { gap: 12px; margin-top: 28px; }
  .ig-fold > summary { padding: 18px 52px 18px 16px; }
  .ig-fold > summary::after { right: 22px; }
  .ig-fold__body { padding: 18px 16px 20px; }
  /* No gutter for the number: it stands at the start of the step's title. */
  .ig-step { padding-left: 0; }
  .ig-step::before, .ig-step + .ig-step::before { float: left; margin-right: 10px; position: static; }
  .ig-cmd code { font-size: 14.5px; padding: 11px 12px; }
  .ig-copy { padding: 0 11px; }
  .ig-copy--icon { padding: 0; }
  .ig-six, .ig-duo { grid-template-columns: minmax(0, 1fr); }
  .ig-h3 { font-size: 19px; margin-top: 28px; }
}
