/* Download, variant D (owner, 2026-11-24: the page was overloaded). The title and one system switch: a tab list Windows, macOS, Linux
   (stroke icons, the selected tab filled with the accent), on macOS the processor beside it, then the line of what the system needs. Then
   one row per product between hairlines: the product's colour dot, its name with "Beta" and one line, the version in mono, one accent
   download button with the size and, where the product has a ZIP, a square accent button that says ".zip"; every row keeps the
   ZIP's width so the buttons line up. A row without a file keeps its state; a dev build offered to those who see it carries the
   "dev build" tag after its version. Then the help line (the "All files" view is gone, owner 2026-11-25). download.js fills the rows. */

.dl-page .fx-sub-intro { max-width: none; padding-bottom: 30px; }
.dl-page .fx-sub-intro h1 { margin-bottom: 26px; }

/* the system switch */
.dl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.dl-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.dl-tabs [role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.dl-tabs [role="tab"]:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.dl-tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.dl-tabs [role="tab"]:focus-visible { outline-offset: 2px; }
.dl-tabs svg { flex: none; }
.dl-cpu { display: flex; gap: 8px; }
.dl-cpu[hidden] { display: none; }
.dl-cpu button { min-height: 36px; padding: 0 12px; border: 1px solid var(--tick); border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.dl-cpu button:hover { color: var(--text); border-color: var(--text-3); }
.dl-cpu button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.dl-cpu button:focus-visible { outline-offset: 2px; }
.dl-needs { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-3); }
.dl-needs[hidden] { display: none; }

.dl-note { max-width: 760px; margin: 0 0 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.dl-note a { color: var(--accent); text-underline-offset: 3px; }
/* the invitation field under the note (a signed-in person without access): the form row of the account pages (style.css, label above its control) */
.dl-invite { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; margin: 16px 0 24px; }   /* one row under the title (owner, 2026-11-24) */
.dl-invite[hidden] { display: none; }
.dl-invite input[type="text"] { flex: 1 1 260px; min-width: 0; margin: 0; }
.dl-invite .btn-primary { margin: 0; flex: none; }

/* the product rows: dot, name and line, version, the buttons (a fixed width, the ZIP's place kept) */
.dl-rows { border-top: 1px solid var(--line); }
.dl-row { --dot: var(--accent); display: grid; grid-template-columns: 10px minmax(0, 1fr) 150px 264px; align-items: center; gap: 0 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dl-row[data-product="setup"] { --dot: #ff7a00; }    /* SuperPower Studio PLUS, everything together: Pro-Motion's orange */
.dl-row[data-product="studio"] { --dot: #5ccfe6; }
.dl-row[data-product="spfx"] { --dot: #92f390; }
.dl-row[data-product="mcp"] { --dot: #ff6ec7; }      /* SuperPower MCP's own colour (owner, 2026-11-24; site/static-spmcp/mcp.css) */
.dl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.dl-what { min-width: 0; }
.dl-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dl-name h2 { margin: 0; font-size: 22px; font-weight: 620; line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 24px; }
.dl-name .fx-status { font: 500 13px/1 var(--mono); color: var(--accent); }
.dl-about { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.dl-now { margin: 0; font: 500 14px/1.4 var(--mono); color: var(--text-2); overflow-wrap: anywhere; }
.dl-now .dl-tag { display: table; margin: 6px 0 0; font-family: var(--sans); font-weight: 400; }   /* "dev build" under the version */
.dl-get { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; align-items: center; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.dl-btn .dl-size { font-weight: 500; color: inherit; opacity: .75; }
a.dl-btn:hover, a.dl-zip:hover { border-color: var(--accent-2); background: var(--accent-2); }
.dl-zip { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--accent-ink); transition: background .15s, border-color .15s; }
.dl-zip .dl-ext { font: 600 13px/1 var(--mono, ui-monospace, monospace); letter-spacing: 0; }
.dl-btn:focus-visible, .dl-zip:focus-visible { outline-offset: 3px; }
/* without access the same buttons as words in the hairline, without a link */
.dl-btn[aria-disabled], .dl-zip[aria-disabled] { border-color: var(--tick); background: transparent; color: var(--text-3); }
.dl-get .dl-wait, .dl-get .dl-none, .dl-get .dl-soon, .dl-get .dl-plus { grid-column: 1; justify-content: center; text-align: center; }
.dl-plus { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text-3); }
.dl-wait, .dl-none { margin: 0; font-size: 14px; color: var(--text-3); }
.dl-soon { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--text-3); }
.dl-soon::before { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px dashed currentColor; border-radius: 50%; }
.dl-size { font-size: 13px; font-weight: 400; color: var(--text-3); }
.dl-tag { padding: 1px 7px; border: 1px solid var(--accent); border-radius: 999px; font-size: 12px; line-height: 1.5; color: var(--accent); }
.dl-tag-dev { border-color: #eca544; color: #eca544; }
.dl-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the help line under the rows */
.dl-help { margin: 22px 0 48px; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.dl-help a { color: var(--accent); text-underline-offset: 3px; }
.dl-help a:hover { color: var(--accent-2); }

@media (max-width: 1000px) {
  .dl-row { grid-template-columns: 10px minmax(0, 1fr) 120px 240px; gap: 0 18px; }
}
/* the phone: the switch takes the width, a row stacks (name, line, version, then the buttons the full width) */
@media (max-width: 640px) {
  .dl-bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .dl-tabs [role="tab"] { flex: 1 1 0; min-width: 0; padding: 0 10px; gap: 8px; }
  .dl-row { grid-template-columns: 10px minmax(0, 1fr); gap: 0 14px; padding: 20px 0; }
  .dl-dot { align-self: start; margin-top: 9px; }
  .dl-now { grid-column: 2; margin-top: 8px; }
  .dl-now:empty { display: none; }
  .dl-now .dl-tag { display: inline-block; margin: 0 0 0 8px; }   /* the version takes the width: the tag beside it */
  .dl-get { grid-column: 1 / -1; margin-top: 14px; }
  .dl-get .dl-btn:only-child { grid-column: 1 / -1; }
  .dl-get .dl-wait, .dl-get .dl-none, .dl-get .dl-soon, .dl-get .dl-plus { justify-content: flex-start; text-align: left; padding-left: 24px; }
}
@media (prefers-reduced-motion: reduce) { .dl-btn, .dl-zip { transition: none; } }
