/* Downloads page: uses the kit's card, button and mono styles; only the list layout lives here.
   2026-10-12 (Shrav: one Downloads place, get.starsync.dev points here after launch): the latest version open in full,
   older versions folded into rows, and each release's files as a small tree with real file names and fingerprints. */
.dl-rel { padding: 20px; display: grid; gap: 14px; }
.dl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.dl-ver { font-size: 20px; font-weight: 500; color: var(--ss-text); }
.dl-tag { font-size: 12px; color: var(--ss-accent); }
.dl-date { font-size: 13px; color: var(--ss-text-2); }
.dl-notes { margin: 0; padding-left: 20px; color: var(--ss-text-2); font-size: 15px; line-height: 1.55; }
.dl-notes li + li { margin-top: 4px; }
/* 44 px tall tap area without changing the heading's look (design check 17) */
.dl-more { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; font: 400 14px/1.4 var(--ss-font-mono); margin-left: 12px; white-space: nowrap; }
/* List + "Check a download" note side by side on wide screens (design check 22) */
.dl-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .dl-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; } .dl-check { position: sticky; top: 96px; } }
.dl-main { min-width: 0; }

/* Files as a tree: a dashed line down the left with a short branch into each file */
.dl-tree { list-style: none; margin: 4px 0 0; padding: 0 0 0 14px; }
.dl-tree > li { position: relative; padding: 8px 0 8px 18px; }
.dl-tree > li::before { content: ""; position: absolute; left: -14px; top: 21px; width: 26px; border-top: 1px dashed var(--ss-line-strong); }
.dl-tree > li::after { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; border-left: 1px dashed var(--ss-line-strong); }
.dl-tree > li:last-child::after { bottom: auto; height: 21px; }
.dl-file { display: grid; gap: 2px 14px; grid-template-columns: minmax(0, auto) 1fr; align-items: baseline; }
@media (max-width: 599px) { .dl-file { grid-template-columns: minmax(0, 1fr); } }
.ss .dl-name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.dl-kind { font-size: 13px; color: var(--ss-text-2); }
.dl-hash { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--ss-text-3); overflow-wrap: anywhere; }
.dl-hash-label { color: var(--ss-text-2); margin-right: 4px; }

/* Older versions: one folded row each (version + date + chevron), opens to notes + files */
.ss .dl-older-h { margin: 32px 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-text-3); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-old { padding: 0; gap: 0; interpolate-size: allow-keywords; }
.dl-old summary { display: flex; align-items: baseline; gap: 14px; min-height: 52px; padding: 14px 16px 14px 20px; cursor: pointer; list-style: none;
  border-radius: var(--ss-r-lg); }
.dl-old summary::-webkit-details-marker { display: none; }
.dl-old summary:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; }
.dl-old summary:hover .dl-ver { color: var(--ss-text); }
.dl-old .dl-ver { font-size: 16px; color: var(--ss-text-2); }
.dl-chev { flex: none; align-self: center; width: 28px; height: 28px; margin-left: auto; padding: 7px; border-radius: 50%; background: var(--ss-raised);
  color: var(--ss-text); transition: transform var(--ss-ease); }
.dl-old[open] .dl-chev { transform: rotate(180deg); }
.dl-old-body { display: grid; gap: 14px; padding: 0 20px 20px; }
.dl-old .dl-notes { font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .dl-old::details-content { block-size: 0; overflow: hidden; transition: block-size .26s cubic-bezier(.16, 1, .3, 1), content-visibility .26s allow-discrete; }
  .dl-old[open]::details-content { block-size: auto; }
}
@media (pointer: coarse) { .ss .dl-name { display: inline-block; padding: 10px 0; margin: -10px 0; } }

.dl-check { padding: 20px; font-size: 15px; line-height: 1.55; color: var(--ss-text-2); }
.ss .dl-check-h { margin: 0 0 10px; font: 600 17px/1.3 var(--ss-font-head); color: var(--ss-text); }
.ss .dl-check p { margin: 0 0 12px; }
.ss .dl-check p:last-child { margin: 0; }
.dl-cmd { margin: 0 0 12px; padding: 10px 12px; background: var(--ss-raised); border: 1px solid var(--ss-line); border-radius: var(--ss-r); font-size: 13px; color: var(--ss-text); white-space: pre-wrap; word-break: break-all; }
.dl-cmd span { color: var(--ss-accent); }
.dl-empty { color: var(--ss-text-2); font-size: 17px; line-height: 1.6; max-width: 60ch; }
