/* download.omnidoc.top on omnidoc.top's design (2026-10-20). The header, hero, product cards,
 * feature cards, FAQ and footer are omnidoc.top's own markup and stylesheets; this file adds only
 * the download parts (platform cards, requirements, checksums, install guides) on the same tokens,
 * so both themes follow theme.js exactly as the main site does. */

/* Until a non-Chinese dictionary is applied (lang-boot.js), nothing shows, so no Chinese flashes. */
html.lang-pending body { visibility: hidden; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico { width: 18px; height: 18px; }
.btn { gap: 8px; }

/* Header download button */
.dl-nav-btn { padding: 8px 16px; font-size: .875rem; display: inline-flex; align-items: center; }
.dl-nav-btn .ico { width: 16px; height: 16px; }
@media (max-width: 1024px) { .dl-nav-btn { display: none; } }

/* Hero */
.hero .hero-badge { text-decoration: none; }
.dl-hero-btn { display: inline-flex; align-items: center; }
.dl-hero-btn .ico use[href="#i-win"], .dl-hero-btn .ico use[href="#i-mac"], .dl-hero-btn .ico use[href="#i-linux"] { fill: currentColor; stroke: none; }
.dl-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: .875rem; color: var(--text-secondary); }
.dl-hero-meta .ico { width: 16px; height: 16px; color: var(--primary); }
.dl-hero-meta [data-auto-size]::before { content: "·"; margin-inline-end: 6px; }
.dl-hero-meta [data-auto-size] { font-variant-numeric: tabular-nums; }
.hero .dl-hero-note { margin-top: 6px; font-size: .85rem; line-height: 1.6; color: var(--text-light); max-width: 520px; }

/* Shared section frame, matching .suite-section */
.dl-section { padding: 96px 0 88px; background: var(--bg); }
.dl-section.dl-alt, .dl-platforms { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dl-section h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); max-width: 820px; margin: 0 auto 14px; }
.dl-section > .container > .suite-eyebrow + h2:last-child { margin-bottom: 40px; }
#install h2 { margin-bottom: 40px; }
@media (max-width: 768px) { .dl-section { padding: 64px 0; } }
[data-theme="dark"] .dl-section.dl-alt, [data-theme="dark"] .dl-platforms { background: var(--bg); }
[data-theme="dark"] .dl-section { background: var(--bg-alt); }

.dl-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.dl-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.dl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .dl-two, .dl-three { grid-template-columns: 1fr; } }
.dl-fine { margin-top: 14px; font-size: .85rem; line-height: 1.65; color: var(--text-light); }

/* Platform cards */
.dl-plat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .dl-plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dl-plat-grid { grid-template-columns: 1fr; } }
.dl-plat { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.dl-plat:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dl-plat-head { display: flex; align-items: center; gap: 14px; }
.dl-plat-head h3 { font-family: 'Outfit', 'Inter', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.dl-plat-head p { font-size: .82rem; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; }
.dl-os { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dl-os svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.dl-os-win { background: rgba(0, 120, 212, .1); color: #0078D4; }
.dl-os-mac { background: rgba(20, 23, 28, .07); color: var(--text); }
.dl-os-linux { background: rgba(245, 158, 11, .14); color: var(--text); }
.dl-os-web { background: rgba(15, 118, 110, .1); color: var(--primary); }
.dl-os-web svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
[data-theme="dark"] .dl-os-win { background: rgba(80, 160, 230, .14); color: #5AAEF0; }
[data-theme="dark"] .dl-os-mac { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .dl-os-linux { background: rgba(245, 158, 11, .16); color: var(--text); }
[data-theme="dark"] .dl-os-web { background: rgba(45, 212, 191, .12); }
.dl-plat-btn { justify-content: center; width: 100%; margin-top: 4px; display: inline-flex; align-items: center; }
.dl-plat-size { direction: ltr; font-size: .8rem; color: var(--text-light); font-variant-numeric: tabular-nums; text-align: center; }
.dl-plat-note { font-size: .82rem; line-height: 1.6; color: var(--text-secondary); }
.dl-store { display: flex; justify-content: center; margin-top: 2px; }
.dl-store img { height: 44px; width: auto; display: block; }
.dl-plat-link { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; font-size: .875rem; font-weight: 600; color: var(--primary); }
.dl-plat-link .ico { width: 16px; height: 16px; transition: transform var(--transition); }
.dl-plat-link:hover .ico { transform: translateX(3px); }
[dir="rtl"] .dl-plat-link .ico, [dir="rtl"] .suite-arrow { transform: scaleX(-1); }
.dl-yours { display: none; position: absolute; top: -11px; inset-inline-start: 20px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--btn-primary-ink); background: var(--btn-primary-bg); }
[data-download-platform="windows"] #windows, [data-download-platform="mac"] #macos, [data-download-platform="linux"] #linux, [data-download-platform="web"] #web { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg); }
[data-download-platform="windows"] #windows .dl-yours, [data-download-platform="mac"] #macos .dl-yours, [data-download-platform="linux"] #linux .dl-yours, [data-download-platform="web"] #web .dl-yours { display: inline-block; }

/* Commands and checksums */
.dl-cmd { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dl-cmd code, .dl-hash code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .8rem; direction: ltr; text-align: left; }
.dl-cmd code { display: block; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); overflow-x: auto; white-space: nowrap; }
.dl-plat .dl-cmd code { font-size: .74rem; padding: 8px 10px; white-space: normal; word-break: break-all; }
.dl-hash { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.dl-hash:first-of-type { border-top: 0; }
.dl-hash-os { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--text); min-width: 96px; }
.dl-hash-os svg { width: 18px; height: 18px; fill: currentColor; color: var(--text-secondary); }
.dl-hash code { color: var(--text-secondary); word-break: break-all; line-height: 1.5; }
.dl-copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: border-color var(--transition), color var(--transition); }
.dl-copy:hover { border-color: var(--primary); color: var(--primary); }
.dl-copy .ico { width: 14px; height: 14px; }
.dl-sums { grid-column: 2 / -1; font-size: .8rem; font-weight: 600; color: var(--primary); }
@media (max-width: 600px) {
  .dl-hash { grid-template-columns: 1fr auto; }
  .dl-hash code { grid-column: 1 / -1; grid-row: 2; }
  .dl-sums { grid-column: 1 / -1; }
}

/* Requirements */
.dl-spec { display: grid; gap: 0; }
.dl-spec > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.dl-spec > div:first-child { border-top: 0; padding-top: 0; }
.dl-spec dt { font-size: .875rem; color: var(--text-secondary); }
.dl-spec dd { font-size: .9rem; color: var(--text); line-height: 1.6; font-variant-numeric: tabular-nums; }
.dl-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dl-table th, .dl-table td { padding: 11px 6px; border-top: 1px solid var(--border); text-align: center; }
.dl-table thead th { border-top: 0; padding-top: 0; font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.dl-table th[scope="row"], .dl-table thead th:first-child { text-align: start; font-weight: 500; color: var(--text); }
.dl-table thead th:first-child { color: var(--text-secondary); font-weight: 600; }
.dl-yes, .dl-no { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; vertical-align: middle; }
.dl-yes { background: rgba(22, 163, 74, .12); color: var(--success); }
.dl-no { background: var(--bg-alt); color: var(--text-light); }
.dl-yes .ico, .dl-no .ico { width: 14px; height: 14px; stroke-width: 2.6; }

/* Release notes */
.dl-ver { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: var(--text-secondary); font-size: .9rem; margin-bottom: 14px; }
.dl-ver strong { font-family: 'Outfit', 'Inter', sans-serif; font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.dl-date { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.dl-notes { list-style: none; display: grid; gap: 12px; margin-bottom: 16px; }
.dl-notes li { position: relative; padding-inline-start: 22px; font-size: .925rem; line-height: 1.7; color: var(--text-secondary); }
.dl-notes li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* Install guides */
.dl-install p { font-size: .925rem; line-height: 1.7; color: var(--text-secondary); }
.dl-install .dl-os { width: 36px; height: 36px; border-radius: 10px; }
.dl-install .dl-os svg { width: 20px; height: 20px; }

/* FAQ footnote and CTA */
.dl-faq-more { text-align: center; margin-top: 28px; color: var(--text-secondary); font-size: .95rem; }
.dl-faq-more a { color: var(--primary); font-weight: 600; }
.dl-cta-wrap { padding-top: 0; }
.dl-cta-wrap .suite-cta { margin-top: 0; }

/* Toast */
.dl-toast { position: fixed; left: 50%; bottom: 28px; z-index: 2000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-xl); transition: opacity .25s ease, transform .25s ease; }
.dl-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* The language list is the main site's; download-page.js toggles .open on it. */
.lang-menu button[aria-checked="true"] { font-weight: 600; }
[dir="rtl"] .hero-content { text-align: start; }
