/* The install guides (P-39): install.html and the dashboard's Install Drawer.
   The parts are kit components (Code block, Callout, Radio cards, Steps,
   Drawer); this file lays out a guide's numbered steps beside their
   pictures and colours the pictures from the tokens. Logical properties
   only, so a guide reads right to left in Arabic; the pictures carry no
   words, so they simply mirror.

   The dark UI (15 October 2026): the reference's install steps (a number in
   a 24px hairline circle, the step in Sora 600 and its words in the small
   role) on hairline cards with no coloured top line, and the pictures drawn
   dark: a window on the ground, panel and raised greys for the page, the
   light cobalt for what to press, green for done. They are shapes, not a
   customer's own look, so they follow the site's theme. */

/* ---- a guide ---------------------------------------------------------------------------- */
.install-guide { display: grid; gap: var(--split); min-width: 0; }
.install-guide-title { margin: 0; color: var(--text); font: var(--type-subtitle); letter-spacing: var(--track-subtitle); }
.install-guide-needs { margin: 0; padding: var(--row) var(--stack); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--raised); color: var(--text-2); font: var(--type-caption); }
.install-steps { display: grid; gap: var(--stack); margin: 0; padding: 0; list-style: none; }
.install-step { position: relative; display: grid; grid-template-columns: var(--h-xs) minmax(0, 1fr) minmax(152px, 232px); align-items: start; gap: var(--split); padding: var(--in-s); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: none; overflow: hidden; }
/* The step's number: the reference's .howto circle (a hairline ring, the digit in Sora). */
.install-step-num { display: grid; width: var(--h-xs); height: var(--h-xs); place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: none; color: var(--text-2); font: var(--type-micro); font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: none; }
.install-step-body { display: grid; gap: var(--stack); min-width: 0; }
.install-step-text { margin: 0; color: var(--text); font: var(--type-small); overflow-wrap: anywhere; }
.install-art { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ground); overflow: hidden; }
.install-art svg { display: block; width: 100%; height: auto; }
.install-art:dir(rtl) svg, [dir="rtl"] .install-art svg { transform: scaleX(-1); }
.install-guide-after { display: grid; gap: var(--stack); }
.install-plugin { display: flex; flex-wrap: wrap; align-items: center; gap: var(--stack); }
.install-plugin .ui-btn { text-decoration: none; }
.install-code { gap: var(--row); }
.install-code-head { display: flex; align-items: center; justify-content: space-between; gap: var(--stack); }
.install-code pre { max-height: 220px; }
.install-code-pair { display: grid; gap: var(--stack); }

/* In a Drawer, or on a phone, the picture goes under the words. */
.install-guide[data-compact] .install-step { grid-template-columns: var(--h-xs) minmax(0, 1fr); }
.install-guide[data-compact] .install-art { grid-column: 2; max-width: 260px; }
@media (max-width: 720px) {
  .install-step { grid-template-columns: var(--h-xs) minmax(0, 1fr); }
  .install-art { grid-column: 2; max-width: 280px; }
}

:lang(ar) .install-guide-title { font-family: var(--font-arabic); letter-spacing: 0; line-height: 1.4; }
:lang(ar) .install-step-text, :lang(ar) .install-guide-needs { font-family: var(--font-arabic); }

/* ---- the pictures: every colour is a token ------------------------------------------------- */
.ia-frame { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ia-bg { fill: var(--panel); }
.ia-dot { fill: var(--line-2); }
.ia-bar { fill: var(--line-2); }
.ia-ink-soft { fill: var(--text-3); }
.ia-soft { fill: var(--raised); }
.ia-hi { fill: var(--cobalt); }
.ia-hi-soft { fill: var(--cobalt-soft-2); }
.ia-hi-line { stroke: var(--cobalt-2); stroke-width: 2; }
.ia-hi-stroke { fill: none; stroke: var(--cobalt-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ia-ring { fill: none; stroke: rgba(42,91,224,.28); stroke-width: 3; }
.ia-dash { fill: var(--cobalt-soft); stroke: var(--cobalt-2); stroke-width: 2; stroke-dasharray: 6 5; }
.ia-on-hi { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ia-ok { fill: var(--ok); }
/* The terminal: the darkest ground, its lines in the greys, the prompt in the light cobalt. */
.ia-ink { fill: var(--ground); stroke: var(--line-2); stroke-width: 1.5; }
.ia-term { fill: var(--text-2); }
.ia-term-dim { fill: var(--text-3); }
.ia-term-hi { fill: var(--cobalt-2); }
/* The pointer, as the reference draws its own: white with a dark edge. */
.ia-cursor { fill: var(--text); stroke: var(--ground); stroke-width: 1.4; stroke-linejoin: round; }

/* ---- the platform picker (Radio cards, tiles) ------------------------------------------------ */
.install-platforms { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.install-platforms .ui-radio-card { min-height: 92px; }
.install-platforms .ui-radio-card strong { font: var(--type-micro); font-weight: 600; }

@media (forced-colors: active) {
  .install-art { border: 1px solid CanvasText; }
  .install-step-num { border: 1px solid CanvasText; }
}
