/* the downloads page: layout only, colours and type come from /brand/avr.css */
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--on-background); font-family: var(--font); }
a { color: inherit; }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none !important; }

.top { display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); }
.brand { display: inline-flex; line-height: 0; margin-right: auto; }
.top-tools { display: flex; gap: 8px; }
.top-tools .avr-chip { text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 48px; }
.intro { padding: 48px 0 28px; display: grid; gap: 14px; justify-items: start; border-radius: var(--r-xl); }
.lead { max-width: 640px; margin: 0; }

.apps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 12px 0 28px; }
.app { display: grid; gap: 12px; align-content: start; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-sign { height: 48px; width: auto; }
.status { font: 620 12px/1 var(--font); padding: 6px 10px; border-radius: var(--r-full); background: var(--secondary-container); color: var(--on-secondary-container); white-space: nowrap; }
.status.soon { background: var(--primary-container); color: var(--on-primary-container); }
.app h2 { margin: 0; }
.app p { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.facts span { font: 560 12px/1 var(--font); padding: 5px 9px; border-radius: var(--r-full); background: var(--surface-high); color: var(--on-surface-variant); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.actions .avr-btn { text-decoration: none; }
.hash { font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--on-surface-variant); word-break: break-all; }
details summary { cursor: pointer; font: 600 13px/20px var(--font); color: var(--primary); }

.howto { margin: 8px 0 0; display: grid; gap: 8px; }
.howto h2 { margin: 0; }
.howto ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.foot { display: grid; justify-items: center; padding: 24px 20px calc(32px + env(safe-area-inset-bottom, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.howto { display: grid; gap: 14px; margin: 8px 0 0; }
.howto-card { display: grid; gap: 10px; }
.howto-card h2, .howto-card h3, .howto-card p { margin: 0; }
.howto-card ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.howto-card a { color: var(--primary); }
.source { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.source code { padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-high); font: 13px/1.3 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
