/* Shared header: one row on desktop, native menu on smaller screens. */
.site-header-shared { box-sizing: border-box; width: min(1360px, calc(100% - 64px)); margin-inline: auto; position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; flex-wrap: nowrap; gap: 22px; min-height: 88px; padding-block: 16px; border-bottom: 1px solid #ffffff0c; color: #f3f7fc; font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; }
.site-header-shared.site-header-full { width: 100%; max-width: none; padding-inline: 32px; }
.site-header-shared .site-header-brand { display: inline-flex; align-items: center; gap: 10px; color: #f3f7fc; font-size: 21px; font-weight: 700; letter-spacing: -.4px; text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.site-header-shared .site-header-brand img { width: 34px; height: 34px; display: block; }
.site-header-desktop { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header-shared .site-header-nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 18px; font-size: 13px; color: #9ab0c9; }
.site-header-shared .site-header-nav a { color: inherit; text-decoration: none; white-space: nowrap; }
.site-header-shared .site-header-nav a:hover, .site-header-shared .site-header-nav a[aria-current] { color: #f3f7fc; }
.site-header-shared .site-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.site-header-shared form.site-header-language { margin: 0; }
.site-header-shared .site-header-language label, .site-header-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-header-shared .site-header-language select { box-sizing: border-box; width: auto; height: 38px; max-width: 130px; margin: 0; padding: 0 10px; font: inherit; font-size: 12px; color: #9ab0c9; background: #152233; border: 1px solid #2a3a4a; border-radius: 9px; cursor: pointer; }
.site-header-shared a:focus-visible, .site-header-shared select:focus-visible, .site-header-shared summary:focus-visible { outline: 2px solid #75cfdc; outline-offset: 4px; }
.site-header-shared .site-header-language button { font: inherit; font-size: 12px; color: #f3f7fc; border: 1px solid #2a3a4a; background: #152233; border-radius: 6px; padding: 6px 10px; }
.site-header-shared .site-download-menu { position: relative; }
.site-header-shared .site-download-menu > summary { list-style: none; display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 10px 12px; border-radius: 9px; background: #80d5c5; color: #102430; font-size: 12px; font-weight: 700; white-space: nowrap; }
.site-header-shared summary::-webkit-details-marker { display: none; }
.site-header-shared .site-download-options { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 232px; padding: 8px; background: #152233; border: 1px solid #385368; border-radius: 12px; box-shadow: 0 14px 30px #0005; z-index: 40; }
.site-header-shared .site-download-options a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; text-decoration: none; color: #f3f7fc; font-size: 13px; border-radius: 7px; }
.site-header-shared .site-download-options a:hover { background: #20394a; }
.site-header-mobile, .site-header-mobile-download, .site-download-icon { display: none; }
@media (max-width: 1279px) {
    .site-header-shared { gap: 10px; min-height: 72px; }
    .site-header-shared.site-header-full { padding-inline: 22px; }
    .site-header-desktop { display: none; }
    .site-header-mobile-download { display: block; margin-inline-start: auto; }
    .site-header-mobile { display: block; }
    .site-header-mobile > summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #cce4f3; background: #152233; border: 1px solid #385368; border-radius: 9px; cursor: pointer; }
    .site-header-mobile > summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
    .site-header-mobile-panel { position: absolute; inset-inline: 0; top: calc(100% + 6px); padding: 20px; border: 1px solid #385368; border-radius: 14px; background: #152233; box-shadow: 0 14px 30px #0005; max-height: 70vh; overflow-y: auto; }
    .site-header-shared .site-header-mobile-panel .site-header-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 14px; }
    .site-header-mobile-panel .site-header-nav a { white-space: normal; padding: 8px; }
    .site-header-mobile-panel .site-header-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid #385368; flex-wrap: wrap; gap: 14px; }
    .site-header-mobile-panel .site-account-dropdown { position: relative; top: auto; margin-top: 8px; }
}
@media (max-width: 580px) {
    .site-header-shared { width: calc(100% - 36px); padding-block: 14px; }
    .site-header-shared.site-header-full { padding-inline: 14px; }
    .site-header-shared .site-header-brand { font-size: 18px; gap: 8px; }
    .site-header-shared .site-header-brand img { width: 30px; height: 30px; }
    .site-header-mobile-download .site-download-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .site-header-mobile-download .site-download-icon { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
    .site-header-shared .site-header-mobile-download .site-download-menu > summary { padding: 10px; }
}

.site-header-shared .site-download-chevron { display: block; width: 12px; height: 12px; flex: 0 0 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.site-header-shared .site-download-menu[open] > summary .site-download-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .site-header-shared .site-download-chevron { transition: none; } }

/* Download and account entries share the navigation's quiet text style. */
.site-header-shared .site-header-nav .site-download-menu > summary,
.site-header-shared .site-header-nav .site-account-login { padding: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; color: #9ab0c9; font: inherit; box-shadow: none; }
.site-header-shared .site-header-nav .site-download-menu > summary:hover,
.site-header-shared .site-header-nav .site-account-login:hover { background: transparent; color: #f3f7fc; }
.site-header-shared .site-header-nav .site-download-options { inset-inline-start: 0; inset-inline-end: auto; }
@media (max-width: 1279px) {
    .site-header-shared .site-header-mobile { margin-inline-start: auto; }
    .site-header-shared .site-header-mobile-panel .site-download-menu > summary,
    .site-header-shared .site-header-mobile-panel .site-account-login { padding: 8px; justify-content: flex-start; }
    .site-header-shared .site-header-mobile-panel .site-download-options { position: static; min-width: 0; margin-top: 8px; }
}

.site-header-mobile-account { display: none; }
.site-header-shared .site-account-login { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #9ab0c9; }
.site-header-shared .site-account-login:hover { background: transparent; color: #f3f7fc; }
.site-header-shared .site-account-login svg { display: block; width: 22px; height: 22px; }
@media (max-width: 1279px) {
    .site-header-mobile-account { display: flex; align-items: center; margin-inline-start: auto; }
    .site-header-shared .site-header-mobile { margin-inline-start: 0; }
}
