/* Download-page-only styles; reuse the site's shared design tokens. */
.downloads-page .page-hero { padding-block: 66px 32px; text-align: center; }
.downloads-page .page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 auto 16px; letter-spacing: -.035em; line-height: 1.3; }
.downloads-page .page-hero p { margin-inline: auto; max-width: 620px; font-size: 16px; }
.downloads-page .nav-links [aria-current="page"] { color: var(--text); }
.download-hub { max-width: 1000px; }
.platform-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; margin: 0 auto 28px; max-width: 640px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.platform-tabs a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; border-radius: 12px; color: var(--muted); text-decoration: none; font: 600 14px/1.3 var(--apple-font, system-ui); transition: background .2s, color .2s, box-shadow .2s; }
.platform-tabs a:hover { background: var(--surface-2); color: var(--text); }
.platform-tabs a[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: 0 4px 18px rgba(61, 131, 255, .24); }
.downloads-page :is(a, summary, [role="tabpanel"]):focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; }
.platform-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16, 23, 34, .84); margin-bottom: 28px; }
.platform-panel[hidden] { display: none; }
.download-hub.enhanced .platform-panel { animation: panel-reveal .22s ease-out; }
.release-header { padding: 32px 36px; background: linear-gradient(120deg, rgba(61, 131, 255, .1), transparent 75%); border-bottom: 1px solid var(--line); }
.release-identity { display: flex; align-items: center; gap: 18px; }
.release-logo { flex: 0 0 auto; border-radius: 17px; }
.release-identity h2 { font-family: var(--apple-font, system-ui); font-size: 25px; line-height: 1.2; font-weight: 600; margin: 8px 0 0; text-align: start; }
.release-identity h2 span { display: block; font-size: 16px; font-weight: 500; color: var(--muted); margin-top: 6px; }
html[dir="rtl"] .release-identity h2 { text-align: right; }
.release-status { display: inline-flex; gap: 7px; align-items: center; color: var(--green); font-size: 12px; font-weight: 600; }
.release-status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.release-status.pending { color: var(--muted); }
.release-description { color: var(--muted); margin: 22px 0 16px; max-width: 680px; font-size: 15px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font: 500 12px/1.6 var(--apple-font, system-ui); }
.release-meta span { padding: 4px 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(7, 11, 18, .28); }
.release-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.release-actions .button { min-width: 168px; }
.release-compatibility { max-width: 660px; color: var(--muted); font-size: 12px; margin: 18px 0 0; line-height: 1.9; }
.platform-content { padding: 32px 36px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px 38px; align-items: start; }
.platform-content h3 { font-size: 18px; margin: 0 0 18px; font-weight: 600; }
.section-kicker { display: block; font-size: 11px; color: var(--blue-2); font-weight: 600; margin-bottom: 7px; }
.install-steps { list-style: none; counter-reset: install-step; padding: 0; margin: 0; }
.install-steps li { counter-increment: install-step; position: relative; padding: 0 0 22px; padding-inline-start: 42px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.install-steps li:last-child { padding-bottom: 0; }
.install-steps li::before { content: counter(install-step, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 1px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue-2); font: 500 11px var(--apple-font, system-ui); }
.platform-resources { display: grid; gap: 24px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.video-preview { height: 112px; display: flex; gap: 14px; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(61, 131, 255, .11), transparent), var(--bg); border-bottom: 1px solid var(--line); color: var(--muted); font: 500 13px var(--apple-font, system-ui); }
.video-play { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; font: 24px/1 system-ui; color: var(--blue-2); }
.resource-copy { padding: 19px 20px; }
.resource-copy h3, .release-notes h3 { font-size: 15px; margin-bottom: 8px; }
.resource-copy p, .guide-card > p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.9; }
.quiet-badge { display: inline-block; margin-top: 14px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; color: var(--muted); }
.release-notes ul { padding-inline-start: 18px; margin: 0; color: var(--muted); font-size: 13px; }
.release-notes li { margin-top: 7px; padding-inline-start: 3px; }
.platform-notice { grid-column: 1 / -1; padding: 18px 22px; background: rgba(61, 131, 255, .06); border: 1px solid rgba(61, 131, 255, .2); border-radius: 14px; }
.platform-notice strong { font-size: 14px; font-weight: 600; }
.platform-notice p { color: var(--muted); margin: 6px 0 0; font-size: 13px; line-height: 1.9; }
.routing-steps { margin: 16px 0; padding-inline-start: 22px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.routing-steps li + li { margin-top: 8px; }
.platform-notice.warning { background: rgba(244, 189, 76, .04); border-color: rgba(244, 189, 76, .2); }
.platform-notice.warning strong { color: var(--gold); }
.download-integrity { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.download-integrity summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.download-integrity p { color: var(--muted); font-size: 12px; }
.download-integrity code { display: block; direction: ltr; text-align: left; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; margin-top: 12px; }
.checksum { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.upcoming-header .button { margin-top: 8px; }
.upcoming-content { min-height: 300px; }
.download-support { text-align: center; padding: 8px 0 60px; font-size: 13px; color: var(--muted); }
.download-support p { margin: 0 0 8px; }
.download-support a { color: var(--blue-2); text-underline-offset: 4px; font-family: var(--apple-font, system-ui); }
@keyframes panel-reveal { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .downloads-page .page-hero { padding-block: 42px 26px; }
  .downloads-page .page-hero p { font-size: 14px; }
  .platform-tabs { gap: 4px; padding: 5px; border-radius: 15px; margin-bottom: 20px; }
  .platform-tabs a { font-size: 12px; padding-inline: 3px; min-height: 44px; border-radius: 10px; }
  .release-header { padding: 25px 22px; }
  .release-logo { width: 54px; height: 54px; border-radius: 14px; }
  .release-identity { gap: 14px; }
  .release-identity h2 { font-size: 21px; }
  .release-identity h2 span { font-size: 14px; }
  .release-description { font-size: 14px; }
  .release-actions .button { flex: 1 1 140px; min-width: 0; padding-inline: 10px; font-size: 13px; }
  .platform-content { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 28px; }
  .platform-notice { padding: 16px; }
  .download-support { padding-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.downloads-page) { scroll-behavior: auto; }
  .download-hub.enhanced .platform-panel { animation: none; }
  .platform-tabs a { transition: none; }
}
