/* Download (Nov 2026): one frame per app, the matching installer up front, the rest folded away. */
.dl-detect { flex-basis: 100%; white-space: normal; margin: 0.3rem 0 0; }
.dl-detect[hidden] { display: none; }
.dl-detect strong { color: var(--fl-paper); }

.dl-apps { align-items: start; }
.dl-app { display: grid; gap: 1.3rem; grid-template-columns: minmax(0, 1fr); padding: 2.4rem 1.7rem 1.7rem; }
.dl-app__head { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.dl-app__icon { flex: none; width: 56px; height: 56px; }
.dl-app__title { min-width: 0; display: grid; gap: 0.4rem; }
.dl-app__title h2 { margin: 0; font-size: 1.45rem; line-height: 1.15; }
.dl-app__version { margin: 0; gap: 0.6rem; }
.dl-app__version .fl-edge { white-space: normal; }
.dl-app__tagline { margin: 0; line-height: 1.6; }

.dlx-primary { display: grid; gap: 0.55rem; }
.dlx-primary__btn { gap: 0.6rem; align-items: center; text-align: center; }
.dlx-primary__btn svg { flex: none; }
.dlx-primary__meta { justify-content: center; white-space: normal; flex-wrap: wrap; overflow-wrap: anywhere; gap: 0.5em; letter-spacing: 0.08em; text-transform: none; }

.dl-list h3 { margin: 0 0 0.5rem; font-size: 0.68rem; }
.dl-list ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--fl-line); border-radius: var(--fl-radius); background: #0f0c0a; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.9rem; }
.dl-row + .dl-row { border-top: 1px solid var(--fl-line-soft); }
.dl-row.is-match { background: rgba(255, 184, 77, 0.06); box-shadow: inset 2px 0 0 var(--fl-amber); }
.dl-row__info { display: grid; gap: 0.1rem; min-width: 0; }
.dl-row__name { color: var(--fl-paper); font-weight: 700; font-size: 0.95rem; }
.dl-row__file { color: var(--fl-paper-3); font-size: 0.85rem; }
.dl-row__btn {
    flex: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fl-paper);
    text-decoration: none;
    border: 1px solid rgba(241, 235, 224, 0.25);
    border-radius: var(--fl-radius);
}
.dl-row__btn:hover { color: var(--fl-paper); border-color: var(--fl-amber); background: rgba(255, 184, 77, 0.08); }
.dl-row--soon .dl-row__name { color: var(--fl-paper-2); }

.dlx-reqs { padding-top: 0.2rem; }

.dl-more { display: grid; border-top: 1px solid var(--fl-line); }
.dl-fold { border-bottom: 1px solid var(--fl-line); }
.dl-fold summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 0.1rem;
    font-weight: 700;
    color: var(--fl-paper);
}
.dl-fold summary::-webkit-details-marker { display: none; }
.dl-fold summary::after { content: '+'; margin-left: auto; font-family: var(--fl-mono); color: var(--fl-amber); transition: transform .2s ease; }
.dl-fold[open] summary::after { transform: rotate(45deg); }
.dl-fold summary:focus-visible { outline: 2px solid var(--fl-amber); outline-offset: 2px; }
.dl-fold__body { padding: 0 0.1rem 1.1rem; font-size: 0.95rem; color: var(--fl-paper-2); display: grid; gap: 0.6rem; }
.dl-fold__body > * { margin: 0; }
.dl-fold__body.fl-prose { display: block; font-size: 0.95rem; line-height: 1.65; }
.dl-fold__body code { font-family: var(--fl-mono); font-size: 0.86em; }
.dl-fold__body ul { padding-left: 1.2rem; }
.dl-sum__name { white-space: normal; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0.06em; margin-top: 0.4rem; }
.dl-fold .fl-key code { font-size: 0.78rem; letter-spacing: 0.02em; }

.dlx-bundle { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.dlx-bundle h3 { margin: 0 0 0.35rem; }
.dlx-bundle p { margin: 0; max-width: 70ch; }
.dlx-bundle .btn { flex: none; }
@media (max-width: 700px) { .dlx-bundle { flex-direction: column; align-items: flex-start; } }

/* install steps: numbered like frames */
.dlx-guide h3 { margin-bottom: 1.1rem; }
.dl-steps { list-style: none; margin: 0; padding: 0; counter-reset: dl; display: grid; gap: 1rem; }
.dl-steps li { counter-increment: dl; position: relative; padding-left: 2.6rem; line-height: 1.62; color: var(--fl-paper-2); }
.dl-steps li::before {
    content: counter(dl, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-family: var(--fl-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--fl-base);
    background: var(--fl-amber);
    padding: 0.18rem 0.35rem;
    border-radius: 1px;
}
.dl-steps code { font-family: var(--fl-mono); font-size: 0.86em; color: var(--fl-paper); }

.dlx-updates { margin: 1.5rem 0 0; }
.dlx-updates h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.dlx-updates p { margin: 0; }

/* the detect line reads as one sentence, arrow included */
.dl-detect:not([hidden]) { display: block; }
.dl-detect .fl-arrow { margin-right: 0.6em; }
@media (max-width: 600px) {
    .dlx-primary__btn { font-size: 0.8rem; letter-spacing: 0.05em; padding-inline: 1rem; }
    .dl-app__head { align-items: flex-start; }
}
