/* Split "Download for macOS" button: the main part downloads the stable DMG,
 * the narrow chevron segment on the right opens a small menu (beta build,
 * release notes). Behaviour lives in download-menu.js. The wrapper carries the
 * gradient pill so both segments read as one button. */
.dl-split {
  position: relative; display: inline-flex; align-items: stretch; vertical-align: middle;
  max-width: 100%; border-radius: 14px;
  background: linear-gradient(180deg, #6dadf4, #3d7fd0);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px rgba(61,127,208,.35);
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.dl-split:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 30px rgba(61,127,208,.45); }
.dl-split > .btn-primary,
.dl-split > .btn-primary:hover {
  flex: 1 1 auto; min-width: 0; background: transparent; box-shadow: none; filter: none; transform: none;
  border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 18px;
}
.dl-split-toggle {
  position: relative; flex: none; width: 44px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0 14px 14px 0; background: transparent; color: #fff;
  cursor: pointer; font: inherit; transition: background .15s ease;
}
.dl-split-toggle::before {
  content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px;
  background: rgba(255,255,255,.38);
}
.dl-split-toggle:hover, .dl-split-toggle[aria-expanded="true"] { background: rgba(255,255,255,.10); }
.dl-split-toggle svg { transition: transform .18s ease; }
.dl-split-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dl-split > .btn:focus-visible, .dl-split-toggle:focus-visible { outline: 2px solid rgba(255,255,255,.92); outline-offset: -4px; }

/* The menu is moved to <body> while open and positioned by the script, so
 * sections with overflow:hidden (like the final CTA) never clip it. */
.dl-split-menu {
  position: fixed; z-index: 1000; top: 0; left: 0;
  width: min(300px, calc(100vw - 32px)); padding: 6px; text-align: left;
  background: var(--bg-3, #121926); border: 1px solid var(--stroke-strong, rgba(255,255,255,.14));
  border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3);
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}
.dl-split-menu[hidden] { display: none; }
.dl-split-item {
  display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: var(--text, #f2f5f9); text-decoration: none; outline: none;
}
.dl-split-item + .dl-split-item { margin-top: 2px; }
.dl-split-item:hover, .dl-split-item:focus-visible { background: rgba(94,162,239,.12); }
.dl-split-item:focus-visible { box-shadow: 0 0 0 1px rgba(94,162,239,.55) inset; }
.dl-split-ic {
  flex: none; width: 30px; height: 30px; border-radius: 8px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(94,162,239,.14); color: var(--accent, #5ea2ef);
}
.dl-split-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-split-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text, #f2f5f9); }
.dl-split-cap { font-size: 12.5px; line-height: 1.45; color: var(--text-2, #a7b4c6); white-space: normal; }
@media (prefers-reduced-motion: reduce) {
  .dl-split, .dl-split-toggle svg { transition: none; }
  .dl-split:hover { transform: none; }
}
