/* Download uses the same background, heading and card as the login page. */
html:has(body.download-layout) { height: auto; overflow: auto; }
body.auth-page.download-layout { height: auto; min-height: 100vh; overflow: visible; background: #101e18; }
body.auth-page.download-layout #app { height: auto; min-height: 100vh; }
body.auth-page.download-layout .download-page {
    flex: 1 0 auto;
    min-height: auto;
    overflow: visible;
    justify-content: flex-start;
    padding: 130px 24px 48px;
    font-family: "Segoe UI", Arial, "Helvetica Neue", sans-serif;
}
body.auth-page.download-layout .download-page > .header { width: min(960px, 100%); margin: 0 auto; }
.download-page .header-txt { padding-bottom: 22px; }
.download-page .news-heading-vi { margin: 0; }
.download-page .news-detail-bd { padding: 30px 32px; }
.download-page .news-heading-en { letter-spacing: .2em; }
.download-content { font-size: 15px; line-height: 1.7; color: #e9e2cf; }
.download-content h2, .download-content h3, .download-content p { margin: 0; }
.download-eyebrow, .download-source-number { color: #d4b574; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.download-intro h2 { margin: 10px 0; color: #f0dfb8; font-size: clamp(23px, 3vw, 30px); line-height: 1.4; }
.download-intro p, .download-source p, .download-steps p { color: #b7c8ba; }
.download-content a:focus-visible { outline: 2px solid #eed5a0; outline-offset: 4px; }
.download-guide-link { display: inline-block; margin-top: 14px; font-size: 13px; }
.download-sources { display: grid; gap: 12px; margin-top: 24px; }
.download-source { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border: 1px solid rgba(203, 169, 100, .28); border-radius: 9px; background: rgba(255, 253, 240, .05); }
.download-source > div { min-width: 0; }
.download-source h3 { margin: 4px 0; color: #f0dfb8; font-size: 19px; }
.download-source p { font-size: 13px; }
.download-content .download-button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 20px; min-height: 46px; padding: 10px 22px; box-sizing: border-box; border: 1px solid #d4b574; border-radius: 8px; background: linear-gradient(110deg, #a9834a, #d4b574 45%, #eed5a0 55%, #d4b574); background-size: 220% 100%; color: #2c2113; font-size: 15px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .3); transition: background-position .3s ease, transform .2s ease; }
.download-content .download-button:hover { background-position: 100% 0; color: #2c2113; text-decoration: none; transform: translateY(-2px); }
.download-content .download-button.is-disabled { background: rgba(255, 253, 240, .06); border-color: rgba(203, 169, 100, .2); color: #aab7aa; box-shadow: none; }
.download-content .download-note { margin-top: 20px; color: #b7c8ba; font-size: 12px; }
.download-empty { padding: 24px; border: 1px dashed rgba(203, 169, 100, .4); border-radius: 9px; background: rgba(255, 253, 240, .04); }
.download-empty h3 { margin-bottom: 8px; color: #f0dfb8; font-size: 20px; }
.download-empty a { display: inline-block; margin-top: 12px; }
.download-section { margin-top: 28px; padding: 28px 32px; border: 1px solid rgba(203, 169, 100, .3); border-radius: 14px; background: linear-gradient(165deg, #213f34, #15281f 65%, #0f1d17); box-shadow: 0 12px 32px rgba(0, 0, 0, .2); scroll-margin-top: 110px; }
.download-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.download-section-heading > span { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid rgba(203, 169, 100, .3); border-radius: 8px; color: #d4b574; font-size: 13px; }
.download-section-heading h2 { color: #f0dfb8; font-size: 22px; line-height: 1.4; }
.download-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.download-steps li { padding: 20px; border: 1px solid rgba(203, 169, 100, .2); border-radius: 9px; background: rgba(255, 253, 240, .04); }
.step-number { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: rgba(203, 169, 100, .14); color: #e0c37f; font-weight: 700; }
.download-steps h3 { margin-bottom: 8px; color: #e5d5a8; font-size: 16px; }
.download-steps p, .download-steps a { font-size: 13px; }
.download-steps a { display: inline-block; margin-top: 12px; }
.download-table-wrap { overflow-x: auto; border: 1px solid rgba(203, 169, 100, .22); border-radius: 9px; }
.download-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.download-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.download-table th, .download-table td { padding: 14px 18px; border-bottom: 1px solid rgba(203, 169, 100, .18); text-align: left; }
.download-table thead { background: rgba(203, 169, 100, .14); color: #f0dfb8; }
.download-table tbody th { color: #e5d5a8; }
.download-table th { font-weight: 600; }
.download-table tbody tr:last-child th, .download-table tbody tr:last-child td { border-bottom: 0; }
.download-help { margin-top: 20px; padding: 18px 20px; border: 1px solid rgba(203, 169, 100, .22); border-left: 3px solid #d4b574; border-radius: 8px; background: rgba(203, 169, 100, .08); color: #cfc7ac; font-size: 13px; }
.download-help h3 { margin-bottom: 8px; color: #e5d5a8; font-size: 16px; }
.download-help a { display: inline-block; margin-top: 10px; }
@media (max-width: 767px) {
    body.auth-page.download-layout .download-page { padding: 100px 14px 32px; }
    .download-page .news-detail-bd, .download-section { padding: 24px 18px; }
    .download-source { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
    .download-steps { grid-template-columns: minmax(0, 1fr); }
    .download-section-heading h2 { font-size: 20px; }
    .download-table { min-width: 540px; }
    .download-section { scroll-margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    .download-content .download-button { transition: none; }
    .download-content .download-button:hover { transform: none; }
}
