/* The installer choice is shared by the homepage and download guide. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.download-control { min-width: 0; }
.download-control .release-available { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: #3d4160; }
.download-menu { position: relative; width: fit-content; max-width: 100%; text-shadow: none; }
.download-control .download-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 13px 20px; border: 1px solid #d9d9dd; border-radius: 999px; background: #fff; color: #14151a; font: 600 15px/1.3 var(--sans); cursor: pointer; list-style: none; text-align: center; box-shadow: 0 4px 18px #0000000a; }
.download-trigger::-webkit-details-marker { display: none; }
.download-control .download-trigger:hover { background: #eeeef2; color: #14151a; }
.download-trigger svg { flex: none; }
.download-trigger[data-share-mac] svg { display: none; }
.download-menu[open] > summary svg { transform: rotate(180deg); }
.download-menu[open] { z-index: 10; }
.download-options { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; width: 290px; max-width: calc(100vw - 48px); padding: 8px; border: 1px solid #dedee4; border-radius: 16px; background: #fff; color: #17181d; box-shadow: 0 16px 48px #00000030; }
.download-platform { display: block; padding: 7px 10px 10px; color: #686b75; font-size: 11px; line-height: 1.4; }
.download-options .download-option { display: block; padding: 12px 10px; border-radius: 9px; color: #17181d; text-decoration: none; line-height: 1.4; }
.download-options .download-option:hover, .download-options .download-option:focus-visible { background: #f0f1f5; color: #17181d; }
.download-option-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.download-option-title > :last-child { margin-left: auto; }
.download-recommended, .download-beta-note { font-size: 10px; font-weight: 500; color: #666b76; }
.download-option-version { display: block; font-size: 12px; color: #686b75; margin-top: 3px; }
.download-control :is(summary, a):focus-visible { outline: 2px solid #6578ca; outline-offset: 3px; }
.source-link { display: inline-flex; gap: 8px; align-items: center; }
.source-link svg { flex: none; }
.home .download-control .release-available { color: #c9ccd7; }
.home .download-control .download-trigger { background: #fff; border-color: #fff; color: #14151a; }
.home .download-control .download-trigger:hover { background: #eeeef2; }
.home .actions { align-items: flex-end; }
.home .actions:has(.download-menu[open]) { position: relative; z-index: 20; }
@media (max-width: 520px) {
  .download-control .button { font-size: 14px; }
}

/* Keep the hero menu inside short laptop windows without clipping its choices. */
@media (max-height: 700px) {
  .chapter .download-options { top: auto; bottom: calc(100% + 8px); }
}
