/* /download alone: the hero button, the table of builds, the terminal and
   hash blocks, the toast. */
html { scroll-behavior:smooth; }
code, kbd, pre { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.sprite { position:absolute; }

/* The version chip, filled by build-downloads.mjs. */
.ver-row { display:flex; justify-content:center; align-items:center; gap:12px; margin-top:22px; flex-wrap:wrap; }
.ver { font-size:13px; font-weight:700; letter-spacing:.03em; color:var(--accent); background:var(--chip); border:1px solid var(--chip-line); padding:4px 11px; border-radius:9px; }
.ver-date { color:var(--muted); font-size:13.5px; }
.left .ver-row { justify-content:flex-start; }

/* The button for the visitor's own build (download-hero.js). Its baked
   contents are the Mac build, so a visitor with JS off still gets a file. */
.hero-dl { margin-top:26px; }
.dl-big { display:inline-flex; align-items:center; gap:15px; max-width:100%; text-align:left; background:var(--accent); color:var(--accent-ink);
          border-radius:14px; padding:15px 26px; box-shadow:0 6px 22px rgba(198,133,26,.22); }
.dl-big:hover { background:#d8952a; }
.dl-big:active { transform:translateY(1px); }
.dl-big .dl-os { width:24px; height:24px; flex:none; fill:currentColor; }
.dl-big .dl-txt { display:block; min-width:0; }
.dl-label { display:block; font-size:17px; font-weight:800; letter-spacing:-0.01em; line-height:1.25; }
.dl-meta { display:block; font-size:12.5px; font-weight:600; line-height:1.5; opacity:.72; font-variant-numeric:tabular-nums; }
/* A phone, or a system it cannot name: a pointer at the table. */
.dl-big.dl-soft { background:var(--card2); color:var(--text); border:1px solid var(--line); box-shadow:none; }
.dl-big.dl-soft:hover { border-color:var(--chip-line); }
.dl-alt { margin-top:16px; font-size:13.5px; }
.dl-alt a, .get-steps a, .get-see { color:var(--link); }
.dl-alt a:hover, .get-steps a:hover, .get-see:hover { color:var(--link-hover); }
.dl-alt a + a { margin-left:16px; }
.dl-alt a[hidden] { display:none; }
@media (max-width:520px) {
  .dl-big { width:100%; padding:14px 18px; }
  /* Side by side these two wrap into each other mid-sentence. */
  .dl-alt a { display:block; }
  .dl-alt a + a { margin-left:0; margin-top:7px; }
}

/* The nav is sticky and 60px tall: a jump to an anchor clears it. */
#builds, .pl, .pl-line, .pl-more { scroll-margin-top:66px; }
.builds { padding:34px 0 10px; }
.fine { color:var(--muted); margin-top:16px; font-size:14px; }

/* The table (build-downloads.mjs, docs/features/download-page-glance): a header
   row per platform, then a row per installer. Below 640px each row stacks. */
.platforms { border:1px solid var(--line); border-radius:14px; background:var(--card); overflow:hidden; }
.dl-table { width:100%; border-collapse:collapse; font-size:14px; line-height:1.7; }
.dl-table thead th { font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); padding:10px 18px; border-bottom:1px solid var(--line); }
.dl-table th, .dl-table td { text-align:left; vertical-align:middle; font-weight:400; }
.pl-head th { padding:11px 18px; background:var(--card2); border-top:1px solid var(--line); }
.pl:first-of-type .pl-head th { border-top:none; }
.pl-name { display:flex; align-items:center; gap:10px; font-size:16px; font-weight:800; letter-spacing:-0.01em; line-height:1.35; color:var(--text); }
.pl-icon { width:19px; height:19px; flex:none; fill:currentColor; color:var(--muted); }
.pl-line > * { border-top:1px solid var(--line); }
.pl-more > td { border-top:1px dashed var(--line); }
.dl-table .pl-req { width:42%; padding:13px 18px; vertical-align:top; }
.pl-floor { display:block; color:var(--text); font-weight:600; font-size:15px; line-height:1.45; }
.pl-sub { display:block; color:var(--muted); font-size:12.5px; line-height:1.5; }
.pl-get { padding:9px 18px; border-left:1px solid var(--line); }
.pl-sha { width:1%; white-space:nowrap; padding:9px 18px; }
.get { display:inline-flex; align-items:baseline; gap:8px; border:1px solid var(--chip-line); background:var(--chip); color:var(--text); border-radius:10px; padding:6px 13px; font-size:14px; font-weight:700; white-space:nowrap; }
a.get:hover { border-color:var(--accent); }
.get-size { color:var(--muted); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.get-store { background:var(--card2); border-color:var(--line); font-weight:600; color:var(--muted); white-space:normal; }
/* A phone row: the "Public beta" badge, then the numbered way in. */
.get-steps { margin:8px 0 0; padding-left:20px; font-size:13.5px; line-height:1.5; color:var(--muted); }
.get-steps li + li { margin-top:2px; }
/* A terminal row: the command (or "Copy the commands") with its copy button. */
.get-cmd { align-items:center; background:var(--card2); border-color:var(--line); font-weight:600; white-space:normal; padding:4px 5px 4px 12px; }
.get-cmd code { font-size:12.5px; overflow-wrap:anywhere; }
/* A command or a hash in the table is plain text in its button, not a code chip. */
.get-cmd code, .sha code { background:none; border:0; padding:0; border-radius:0; color:inherit; }
.get-cmd .copy { margin-left:2px; }
.get-see { margin-left:10px; font-size:13.5px; font-weight:600; }
@media (max-width:640px) {
  .dl-table thead { display:none; }
  .dl-table, .dl-table tbody, .dl-table tr, .dl-table th, .dl-table td { display:block; width:auto; }
  .dl-table .pl-req { width:auto; padding-bottom:2px; }
  .pl-get { border-left:none; padding:6px 18px 4px; }
  .pl-line > td { border-top:none; }
  .pl-more > td { border-top:none; }
  .pl-more > .pl-get { border-top:1px dashed var(--line); margin:0 18px; padding:10px 0 4px; }
  .pl-more > .pl-sha { padding-left:0; padding-right:0; margin:0 18px; }
  .pl-sha { padding:2px 18px 12px; }
  td.pl-get[colspan] { padding-bottom:14px; }
}

/* The Legacy tag beside the macOS 12–13 line: accent, the word a Monterey or
   Ventura visitor most needs to read. */
.tag { display:inline-block; margin-left:8px; vertical-align:1px; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); background:var(--chip); border:1px solid var(--chip-line); padding:0 7px; border-radius:7px; line-height:1.6; }
/* An installer's SHA-256: short, the whole digest on hover and on the clipboard. */
.sha { display:inline-flex; align-items:center; gap:4px; color:var(--muted); }
.sha code { font-size:12px; }
.sha .copy { width:22px; height:22px; margin-left:4px; border-radius:6px; }
.sha .copy svg { width:11px; height:11px; }
.copy { vertical-align:top; margin-left:8px; width:26px; height:26px; padding:0; flex:none; background:none; border:1px solid var(--line); border-radius:7px; color:var(--muted); cursor:pointer; }
.copy:hover { color:var(--text); border-color:var(--chip-line); }
.copy svg { width:13px; height:13px; display:block; margin:0 auto; }
.copy.done { color:var(--ok); border-color:var(--ok); }

/* The terminal and hash blocks, as wide as the table: the apt lines fit beside
   the copy button. A shell one-liner has no spaces to break at. */
#terminal .prose, #verify .prose { max-width:1000px; }
#terminal p code { overflow-wrap:anywhere; }
pre.cmd { margin-top:12px; background:var(--card2); border:1px solid var(--line); border-radius:10px; padding:12px 14px; overflow-x:auto; font-size:13px; color:var(--text); }
/* The copy button sits in the block's corner and copies data-copy, the
   commands exactly, never the rendered text. */
.cmdbox pre.cmd { padding-right:48px; }
.cmdbox .copy { position:absolute; top:8px; right:8px; margin:0; background:var(--card2); }

.back { padding:10px 0 40px; }

.toast { position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:21; max-width:calc(100% - 32px); background:var(--card); border:1px solid var(--line); border-radius:12px; padding:11px 18px; font-size:13.5px; color:var(--text); text-align:center; box-shadow:0 8px 30px rgba(0,0,0,.25); }
.toast[hidden] { display:none; }
