/* ==========================================================================
   ROS INFINITY - guide.css: the install guide (install.html) and the account page's download steps (account.html #download).
   Load order: tokens.css -> fonts.css -> kit.css -> style.css -> (account.css) -> guide.css.

   Two kinds of drawings, both live text (nothing here is a screenshot, so they stay sharp and readable on a phone):
     .gx-*  Windows as a player sees it (a download, the right-click menu, the extraction, a folder, SmartScreen). They
            use the --os-* colours below so they read as Windows, not as our site: rounded corners, Segoe UI.
     .lx-*  the bottom bar of our launcher (status + PLAY), drawn with the launcher's own sizes and words
            (launcher\ui\launcher.css section 15/16, launcher.js statusFor). Keep its words in step with launcher.js.
   Every drawing is aria-hidden: the step text next to it says the same thing. Nothing animates (no spinner turns).
   ========================================================================== */

.page-guide, .dl-steps, .dl__help {
  --os-bg: #1f2128;          /* a window */
  --os-bar: #292c35;         /* its title bar, a menu */
  --os-line: rgb(255 255 255 / .1);
  --os-text: #f1f2f5;
  --os-text-2: #b9bcc6;
  --os-sel: rgb(var(--gold-rgb) / .16);   /* "click here": the site's gold, never Windows blue */
  --os-blue: #0d5bb8;        /* SmartScreen's panel */
  --os-font: "Segoe UI", system-ui, var(--font-body);
  --os-radius: 8px;
}

/* ---------- 1. Page: hero, sections ---------- */
.page-guide { background: var(--ink-0); }
.guide-hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line-1); }
.guide-hero__inner { display: grid; gap: var(--sp-6); justify-items: start; }
.guide-hero .kicker { margin-bottom: 0; }
.guide-hero__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-6); justify-self: stretch; }

/* English | Taglish (install.html <-> install-tl.html): two links, the page's own one marked */
.guide-lang { display: inline-flex; gap: 2px; padding: 3px; background: var(--ink-2); border: 1px solid var(--line-2); }
.guide-lang a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 var(--sp-4);
  font: 600 var(--fs-label)/1 var(--font-cond);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--dur-1) linear, background-color var(--dur-1) linear;
}
.guide-lang a:hover { color: var(--text-1); background: var(--ink-3); }
.guide-lang a[aria-current="page"] { background: var(--ink-4); color: var(--text-1); }
.guide-hero__title {
  font: 800 var(--fs-display)/var(--lh-tight) var(--font-display);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.guide-hero__title .nw { white-space: nowrap; }                 /* install-tl: "I-extract." never splits after "I-" */
.guide-hero__lead { max-width: 44em; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-1); }
.guide-hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.guide-facts { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.guide-facts li {
  --cut: 0px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 56px;
  padding: var(--sp-2) var(--sp-5) var(--sp-2) var(--sp-3);
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.35;
}
.guide-facts b { display: block; font: 600 1rem/1.25 var(--font-display); color: var(--text-1); }
.guide-facts__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--text-2); background: var(--ink-3); }
.guide-facts__icon .icon { width: 22px; height: 22px; }
.guide-facts__icon .gx-ico { width: 26px; height: 26px; }

.guide-sec { border-bottom: 1px solid var(--line-1); }
.guide-sec:nth-of-type(even) { background: var(--ink-1); }
.guide-sec .section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.guide-sec a:not(.btn) { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--ember-500); text-underline-offset: 3px; }
.guide-sec a:not(.btn):hover { color: var(--ember-text); }
.page-guide main section[id], .gstep, .gfix { scroll-margin-top: calc(var(--nav-h) + var(--sp-6)); }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  border: 1px solid var(--line-ui);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--ink-3);
  font: 600 .82em/1.4 var(--font-body);
  text-align: center;
  color: var(--text-1);
}
q { quotes: "“" "”"; color: var(--text-1); }

/* ---------- 2. The right file: this one / not this ---------- */
.gpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.gpick__card { --cut: 0px; --fill: var(--ink-2); display: grid; align-content: start; gap: var(--sp-4); padding: clamp(20px, 2.4vw, 28px); color: var(--text-2); }
.gpick__card--ok { --bd: rgb(var(--ok-rgb) / .5); }
.gpick__card--no { --bd: rgb(var(--ember-rgb) / .55); }
.gpick__verdict {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font: 700 var(--fs-label)/1 var(--font-display);
  letter-spacing: var(--track-button);
  text-transform: uppercase;
}
.gpick__card--ok .gpick__verdict { color: var(--ok); }
.gpick__card--no .gpick__verdict { color: var(--ember-text); }
.gpick__verdict .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.gpick .gx-dl__item { grid-template-columns: 40px minmax(0, 1fr); font-family: var(--os-font); color: var(--os-text); background: rgb(var(--ok-rgb) / .08); outline-color: rgb(var(--ok-rgb) / .55); }
.gpick .gx-dl__item--no { background: rgb(var(--ember-rgb) / .07); outline-color: rgb(var(--ember-rgb) / .5); }
.gpick .gx-dl__item--no .gx-dl__name { text-decoration: line-through; text-decoration-color: var(--ember-text); }

/* ---------- 3. Steps: text on the left, the drawing on the right (stacked below 900 px) ---------- */
.gsteps { display: grid; gap: clamp(36px, 5vw, 64px); counter-reset: gstep; }
.gstep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--sp-6) clamp(28px, 4vw, 64px); align-items: center; }
.gstep__text { display: grid; gap: var(--sp-4); align-content: start; color: var(--text-2); }
.gstep__head { display: flex; align-items: center; gap: var(--sp-4); }
.gstep__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  color: var(--text-1);
  border: 1px solid var(--line-2);
}
.gstep__title { font: 700 var(--fs-h3)/1.2 var(--font-display); letter-spacing: var(--track-display); text-transform: uppercase; color: var(--text-1); }
.gstep__text > p:not(.gtip) { max-width: 40em; }
.gstep b, .gfix b, .gpick b { font-weight: 600; color: var(--text-1); }

.gtip { display: flex; align-items: flex-start; gap: var(--sp-3); max-width: 40em; padding: var(--sp-3) var(--sp-4); background: var(--ink-2); border-left: 2px solid var(--info); font-size: var(--fs-small); line-height: 1.5; }
.gtip > .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--info); }
.gtip--warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--ink-2)); }
.gtip--warn > .icon { color: var(--warn); }
.guide-sec:nth-of-type(even) .gtip:not(.gtip--warn) { background: var(--ink-2); }

/* the drawing's stage: a dark desk with the art centred, never wider than the column */
.gx {
  position: relative;
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  min-height: 220px;
  padding: clamp(18px, 3vw, 36px);
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / .018) 0 1px, transparent 1px 28px), var(--ink-1);
  border: 1px solid var(--line-1);
  font-family: var(--os-font);
}
.guide-sec:nth-of-type(even) .gx { background: var(--ink-0); }
.gx > * { min-width: 0; max-width: 100%; }                    /* a drawing shrinks with the column, never past it */
.gx__caption { font: 600 var(--fs-micro)/1.3 var(--font-cond); letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--text-3); text-align: center; }

/* ---------- 4. Windows parts (.gx-*) ---------- */
.gx-ico { display: block; flex: none; width: 20px; height: 20px; }
.gx-app { display: block; flex: none; width: 20px; height: 20px; border-radius: 4px; }
.gx-cursor { position: absolute; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6)); }

/* a download as a browser lists it */
.gx-dl { width: min(100%, 380px); padding: var(--sp-2); border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-bar); box-shadow: var(--shadow-1); color: var(--os-text); }
.gx-dl__head { display: flex; justify-content: space-between; padding: 6px 10px 10px; font-size: 13px; font-weight: 600; }
.gx-dl__head span { font-weight: 400; color: var(--os-text-2); }
.gx-dl__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 6px; background: var(--os-sel); outline: 1px solid rgb(var(--gold-rgb) / .55); }
.gx-dl__item .gx-ico { width: 40px; height: 40px; }
.gx-dl__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.gx-dl__meta { margin-top: 2px; font-size: 12.5px; color: var(--os-text-2); }
.gx-dl__done { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(var(--ok-rgb) / .16); color: var(--ok); }
.gx-dl__done .icon { width: 16px; height: 16px; stroke-width: 2.6; }

/* the zip, right-clicked: its tile, the menu with "Extract All..." under the pointer, then the progress */
.gx-desk { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 14px; }
.gx-tile { display: grid; justify-items: center; gap: 6px; width: 112px; padding: 10px 8px; border-radius: 6px; background: rgb(255 255 255 / .06); outline: 1px solid rgb(255 255 255 / .18); color: var(--os-text); font-size: 12.5px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.gx-tile .gx-ico { width: 52px; height: 52px; }
.gx-menu { position: relative; display: grid; width: 210px; padding: 5px; border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-bar); box-shadow: var(--shadow-2); color: var(--os-text); font-size: 13.5px; }
.gx-menu__item { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 12px; border-radius: 5px; }
.gx-menu__item .icon { width: 16px; height: 16px; color: var(--os-text-2); }
.gx-menu__item.is-target { position: relative; background: var(--os-sel); outline: 1px solid var(--gold-500); color: var(--gold-300); font-weight: 600; }
.gx-menu__item.is-target .icon { color: var(--gold-300); }
.gx-menu__item.is-target .gx-cursor { right: 18px; top: 14px; }
.gx-menu__sep { height: 1px; margin: 4px 6px; background: var(--os-line); }
.gx-progress { width: min(100%, 360px); padding: 12px 14px; border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-bg); color: var(--os-text); font-size: 12.5px; }
.gx-progress__line { color: var(--os-text-2); overflow-wrap: anywhere; }
.gx-progress__line b { font-weight: 600; color: var(--os-text); }
.gx-progress__pct { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.gx-bar { height: 6px; margin-top: 8px; border-radius: 3px; background: rgb(255 255 255 / .1); overflow: hidden; }
.gx-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--ok); }   /* always done */

/* a folder window: Name / Type rows, the launcher row ringed in gold */
.gx-win { width: min(100%, 460px); border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-bg); box-shadow: var(--shadow-2); color: var(--os-text); font-size: 13px; }
.gx-win__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: calc(var(--os-radius) - 1px) calc(var(--os-radius) - 1px) 0 0; background: var(--os-bar); font-size: 12.5px; }
.gx-win__bar .gx-ico { width: 16px; height: 16px; }
.gx-win__ctl { display: flex; gap: 2px; margin-left: auto; color: var(--os-text-2); }
.gx-win__ctl span { display: grid; place-items: center; width: 30px; height: 26px; font-size: 13px; line-height: 1; }
.gx-win__path { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 8px 10px; padding: 6px 10px; border-radius: 5px; background: rgb(255 255 255 / .05); color: var(--os-text-2); font-size: 12.5px; line-height: 1.3; }
.gx-win__path b { font-weight: 600; color: var(--os-text); }
.gx-win__path i { font-style: normal; opacity: .6; }
.gx-win__head, .gx-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; align-items: center; gap: 10px; padding: 0 14px; }
.gx-win__head { height: 28px; border-bottom: 1px solid var(--os-line); font-size: 12px; color: var(--os-text-2); }
.gx-rows { padding: 4px 6px 8px; }
.gx-row { position: relative; min-height: 34px; padding: 0 8px; border-radius: 5px; }
.gx-row__name { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-row__type { color: var(--os-text-2); font-size: 12.5px; white-space: nowrap; }
.gx-row.is-target { background: var(--os-sel); outline: 1px solid var(--gold-500); font-weight: 600; }
.gx-row.is-target .gx-row__type { color: var(--gold-300); }
.gx-row.is-dim { opacity: .5; }
.gx-tag {
  position: absolute;
  right: -10px;
  top: 50%;
  translate: 100% -50%;
  padding: 5px 9px;
  background: var(--gold-500);
  color: var(--gold-ink);
  font: 700 11px/1 var(--font-display);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
  padding-left: 14px;
}
.gx--tagged .gx-win { margin-right: 112px; }   /* room for the tag beside the window */

/* SmartScreen, after "More info" */
.gx-smart { width: min(100%, 400px); padding: 22px 22px 18px; border-radius: 2px; background: var(--os-blue); box-shadow: var(--shadow-2); color: #fff; font-size: 13px; line-height: 1.45; }
.gx-smart__title { margin-bottom: 10px; font-size: 22px; font-weight: 300; line-height: 1.2; }
.gx-smart dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 14px 0 18px; }
.gx-smart dt { color: rgb(255 255 255 / .8); }
.gx-smart dd { margin: 0; font-weight: 600; }
.gx-smart__btns { display: flex; justify-content: flex-end; gap: 8px; }
.gx-smart__btn { padding: 6px 18px; border: 2px solid rgb(255 255 255 / .55); font-weight: 600; }
.gx-smart__btn.is-target { position: relative; border-color: var(--gold-300); background: var(--gold-300); color: var(--gold-ink); }
.gx-smart__btn.is-target .gx-cursor { right: -10px; bottom: -14px; }

/* ---------- 5. Our launcher's bottom bar (.lx-*): status block + PLAY, launcher.css 15/16 ---------- */
.lx {
  --tone: var(--text-2);
  --tone-rgb: 182 185 195;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(100%, 640px);
  padding: 18px 20px;
  background: var(--glass-strong);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-1);
  font-family: var(--font-body);
}
.lx::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, var(--ember-500), rgb(var(--ember-rgb) / .35) 28%, rgb(var(--ember-rgb) / 0) 62%); }
.lx[data-tone="ok"] { --tone: var(--ok); --tone-rgb: var(--ok-rgb); }
.lx[data-tone="warn"] { --tone: var(--warn); --tone-rgb: var(--warn-rgb); }
.lx[data-tone="gold"] { --tone: var(--gold-500); --tone-rgb: var(--gold-rgb); }
.lx[data-tone="ember"] { --tone: var(--ember-text); --tone-rgb: 255 106 92; }
.lx__status { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lx__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--tone); background: rgb(var(--tone-rgb) / .13); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.lx__icon .icon { width: 20px; height: 20px; }
.lx__body { min-width: 0; }
.lx__title { font: 600 15px/1.25 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--tone); }
.lx__hint { margin-top: 3px; font: 400 14px/1.45 var(--font-body); color: var(--text-2); }
.lx__action { display: inline-block; margin-top: 6px; font: 600 13.5px/1.2 var(--font-body); color: var(--text-1); text-decoration: underline; text-decoration-color: var(--line-ui); text-underline-offset: 3px; }
.lx__load { display: block; width: min(100%, 300px); height: 3px; margin-top: 7px; background: var(--ink-5); overflow: hidden; }
.lx__load i { display: block; width: calc(var(--p) * 100%); height: 100%; background: linear-gradient(90deg, var(--ember-500), var(--gold-500)); }   /* --p (tokens.css @property, 0..1) set inline on .lx__load */
.lx__spin { display: block; width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .16); border-top-color: var(--gold-300); border-right-color: var(--gold-300); border-radius: var(--r-pill); }   /* drawn, never turning */
.lx__play {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 176px;
  height: 56px;
  padding: 0 18px;
  font: 700 17px/1 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}
.lx__play::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(255 255 255 / .2) 0 1px, transparent 1px), linear-gradient(180deg, #e01a23, #a20d15);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.lx__play .icon { width: 20px; height: 20px; }
.lx__play .lx__spin { width: 17px; height: 17px; border-color: rgb(255 255 255 / .25); border-top-color: #fff; border-right-color: #fff; }
.lx__play[data-state="busy"]::before { background: #8f0c12; }
.lx__play[data-state="blocked"] { color: var(--text-1); }
.lx__play[data-state="blocked"]::before { background: var(--ink-5); box-shadow: inset 0 0 0 1.5px rgb(var(--warn-rgb) / .6); }
.lx__play[data-state="blocked"]::after {           /* the warn edge (a 1.5 px ring) of launcher.css's missing state */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--warn-rgb) / .6);
  clip-path: polygon(evenodd, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px, 14px 0,
    14.6px 1.5px, calc(100% - 1.5px) 1.5px, calc(100% - 1.5px) calc(100% - 14.6px), calc(100% - 14.6px) calc(100% - 1.5px),
    1.5px calc(100% - 1.5px), 1.5px 14.6px, 14.6px 1.5px);
}
.lx-caption { margin-top: -6px; font: 600 var(--fs-micro)/1.3 var(--font-cond); letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--text-3); text-align: center; }

/* ---------- 6. Fixes: the two big ones with the launcher bar, then a grid of the rest ---------- */
.gfixes { display: grid; gap: var(--sp-5); }
.gfixes--more { display: block; columns: 2 360px; column-gap: var(--sp-5); margin-top: var(--sp-5); }   /* short cards stack like tiles */
.gfixes--more > .gfix { break-inside: avoid; margin-bottom: var(--sp-5); }
.gfix { --cut: 0px; --fill: var(--ink-2); display: grid; align-content: start; gap: var(--sp-4); padding: clamp(20px, 2.6vw, 32px); color: var(--text-2); }
.gfix--main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--sp-5) clamp(24px, 3.5vw, 48px); align-items: start; }
.gfix--main > .gfix__head { grid-column: 1 / -1; }
.gfix__head { display: flex; align-items: flex-start; gap: var(--sp-3); }
.gfix__head .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--warn); }
.gfix__title { font: 600 1.25rem/1.3 var(--font-display); color: var(--text-1); }
.gfix__label { margin-bottom: 6px; font: 600 var(--fs-label)/1.2 var(--font-cond); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); }
.gfix__label:not(:first-child), .gfix__steps + .gfix__note { margin-top: var(--sp-4); }
.gfix__steps { display: grid; gap: var(--sp-2); counter-reset: fix; }
.gfix__steps li { position: relative; padding-left: 34px; counter-increment: fix; }
.gfix__steps li::before {
  content: counter(fix);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  font: italic 700 .9rem/1 var(--font-cond);
  color: var(--text-2);
}
.gfix__steps--plain li::before { content: ""; left: 8px; top: .72em; width: 8px; height: 1px; border: 0; background: var(--text-3); }
.gfix__note { font-size: var(--fs-small); color: var(--text-3); }
.gfix__art { display: grid; gap: var(--sp-3); justify-items: center; }
.gfix__art .lx { width: 100%; }

.guide-end { --cut: 0px; --bd: var(--line-2); --fill: var(--ink-1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5) var(--sp-8); margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 40px); }
.guide-end__title { font: 700 var(--fs-h3)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: var(--track-display); color: var(--text-1); }
.guide-end__text { margin-top: 6px; color: var(--text-2); }
.guide-end__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- 7. The account page's download steps (account.html #download): 2 x 2 cards, the picture on the left ---------- */
.dl-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-3); counter-reset: dlstep; }
.dl-step {
  --cut: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  column-gap: 0;
  color: var(--text-2);
  font-size: .9375rem;
  counter-increment: dlstep;
}
.dl-step::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-1); background: var(--ink-0); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.dl-step__vis {
  position: relative;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: var(--sp-3);
  border-right: 1px solid var(--line-1);
  background: var(--ink-1);
  font-family: var(--os-font);
  overflow: hidden;
}
.dl-step__title { padding: var(--sp-4) var(--sp-4) 6px; }
.dl-step > p:not(.dl-step__title) { padding: 0 var(--sp-4) var(--sp-4); }
.dl-step__title { display: flex; align-items: center; gap: var(--sp-2); font: 600 1rem/1.25 var(--font-display); color: var(--text-1); }
.dl-step__title::before {
  content: counter(dlstep);
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  font: italic 700 .9rem/1 var(--font-cond);
  color: var(--text-2);
}
.dl-step b { font-weight: 600; color: var(--text-1); }
.dl-step code { font-family: var(--font-mono); font-size: .86em; color: var(--text-1); }
/* the four little pictures */
.dl-vis-file { display: flex; align-items: center; gap: 8px; color: var(--os-text); font-size: 12px; line-height: 1.3; }
.dl-vis-file .gx-ico { width: 46px; height: 46px; }
.dl-vis-file b { display: block; font-size: 13px; font-weight: 600; }
.dl-step .gx-menu { width: 124px; padding: 3px; font-size: 11.5px; box-shadow: var(--shadow-1); }
.dl-step .gx-menu__item { gap: 6px; min-height: 24px; padding: 0 6px; }
.dl-step .gx-menu__item .icon { width: 13px; height: 13px; }
.dl-step .gx-menu__item.is-target .gx-cursor { width: 15px; height: 15px; right: 2px; top: 12px; }
.dl-vis-row { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 32px; padding: 0 8px; border-radius: 5px; background: var(--os-sel); outline: 1px solid var(--gold-500); color: var(--os-text); font-size: 12.5px; font-weight: 600; }
.dl-vis-row .gx-app { width: 20px; height: 20px; }
.dl-step .lx__play { min-width: 0; height: 42px; padding: 0 16px; gap: 8px; font-size: 14px; letter-spacing: .12em; }
.dl-step .lx__play .icon { width: 16px; height: 16px; }

.dl__only { display: flex; align-items: flex-start; gap: var(--sp-2); max-width: 70ch; margin-top: var(--sp-4); color: var(--text-2); font-size: .9375rem; }
.dl__only > .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--ok); stroke-width: 2.4; }
.dl__only b { font-weight: 600; color: var(--text-1); }
.dl__only code { font-family: var(--font-mono); font-size: .86em; color: var(--text-1); background: var(--ink-3); padding: 1px 6px; overflow-wrap: anywhere; }

.dl__help {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(90deg, var(--warn) 0 3px, transparent 3px), color-mix(in srgb, var(--warn) 8%, var(--ink-2));
  color: var(--text-2);
  font-size: .9375rem;
}
.dl__help > .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--warn); }
.dl__help b { font-weight: 600; color: var(--text-1); }
.dl__help-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-2); }
.dl__help a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-1); text-decoration: underline; text-decoration-color: var(--warn); text-underline-offset: 3px; }
.dl__help a:hover { color: var(--gold-300); }
.dl__help a .icon { width: 16px; height: 16px; }

/* ---------- 8. Responsive (site breakpoints 1180 / 1024 / 720 / 520) ---------- */
@media (max-width: 1024px) {
  .gstep, .gfix--main { grid-template-columns: minmax(0, 1fr); }
  .gfix--main .gfix__art { order: -1; }          /* one column: what the launcher shows first, then what it means */
  .gfix--main .gfix__head { order: -2; }
  .gfixes--more { columns: 1; }
  .dl-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .gpick { grid-template-columns: minmax(0, 1fr); }
  .guide-facts li { flex: 1 1 100%; }
  .guide-hero__cta .btn { flex: 1 1 auto; }
  .lx { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .lx > .lx__play { justify-self: stretch; }
  .gx--tagged .gx-win { margin-right: 0; }
  /* no room beside the window: the tag takes the "Application" cell of its own row */
  .gx-row.is-target .gx-row__type { display: none; }
  .gx-tag { position: static; translate: none; justify-self: end; clip-path: none; padding: 5px 8px; }
  .gx-win__head, .gx-row { grid-template-columns: minmax(0, 1fr) 96px; }
}
@media (max-width: 520px) {
  .gx { padding: 14px; min-height: 0; }
  .gx-tile { width: 96px; }
  .gx-menu { width: 100%; max-width: 230px; }
  .gx-row__type { font-size: 11.5px; }
  .gx-win__head, .gx-row { grid-template-columns: minmax(0, 1fr) 82px; padding: 0 6px; }
  .lx__hint { font-size: 13px; }
  /* a phone: the picture as a band on top, the words at full width under it */
  .dl-step { grid-template-columns: minmax(0, 1fr); }
  .dl-step__vis { grid-row: auto; min-height: 84px; border-right: 0; border-bottom: 1px solid var(--line-1); }
  .dl-step__title { padding: var(--sp-3) var(--sp-4) 6px; }
  .dl-vis-row { width: auto; }
  .dl__help { padding: var(--sp-4); }
}

/* ---------- 9. Forced colours (Windows contrast themes): painted fills give way to real borders ---------- */
@media (forced-colors: active) {
  .gx, .gx-dl, .gx-menu, .gx-win, .gx-progress, .gx-smart, .lx, .gfix, .gpick__card, .dl-step, .dl__help, .gtip { border: 1px solid CanvasText; }
  .gx-row.is-target, .gx-menu__item.is-target, .gx-dl__item, .dl-vis-row { outline: 2px solid Highlight; }
  .lx__play, .gx-smart__btn.is-target { border: 2px solid ButtonText; }
}
