/* Download selector and its page-scoped mobile resource header. */
.mc-downloads { color: #f1f4f7; margin: 20px auto; max-width: 1240px; font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.5; }
.mc-downloads *, .mc-downloads *::before, .mc-downloads *::after { box-sizing: border-box; }
.mc-downloads a { color: #64bdec; text-decoration: none; }
.mc-downloads a:hover { color: #b0e1ff; text-decoration: none; }
.mc-downloads :focus-visible { outline: 2px solid #90d7ff; outline-offset: 4px; }
.mc-downloads svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mc-downloads-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mc-downloads-heading h2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.mc-downloads .mc-downloads-terms { margin: 0 0 24px; padding: 13px 16px; border-left: 3px solid #64bdec; border-radius: 0 5px 5px 0; background: #19242e; color: #e6edf4; font-size: 15px; font-weight: 600; line-height: 1.6; }
.mc-downloads-terms a { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* Keep the three-card track width even when only one or two versions are shown. */
.mc-downloads-grid { --mc-download-columns: 3; --mc-download-gap: 20px; display: grid; grid-template-columns: repeat(var(--mc-download-columns), minmax(0, calc((100% - var(--mc-download-gap) * 2) / 3))); justify-content: center; gap: 12px var(--mc-download-gap); margin-bottom: 22px; }
.mc-downloads--columns-2 .mc-downloads-grid { --mc-download-columns: 2; }
.mc-downloads--columns-1 .mc-downloads-grid { --mc-download-columns: 1; }
.mc-downloads-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #35404a; border-radius: 8px; background: #191d22; }
/* The image sets its frame's height: landscape and portrait art both fit fully. */
.mc-downloads-art { display: block; width: 100%; height: auto; aspect-ratio: var(--mc-image-ratio, auto); min-height: 0; position: relative; flex-shrink: 0; overflow: hidden; border-bottom: 1px solid #303941; background: #121b22; }
.mc-downloads a.mc-downloads-art { color: inherit; text-decoration: none; }
.mc-downloads a.mc-downloads-art:focus-visible { outline-offset: -3px; }
.mc-downloads a.mc-downloads-art:hover img, .mc-downloads a.mc-downloads-art:focus-visible img { filter: brightness(.98) saturate(1); }
.mc-downloads-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #10171c66, transparent 65%); pointer-events: none; }
.mc-downloads-art img { position: var(--mc-image-position, relative); inset: var(--mc-image-inset, auto); width: 100%; height: var(--mc-image-height, auto); max-height: none; display: block; object-fit: var(--mc-image-fit, contain); object-position: var(--mc-image-x, 50%) var(--mc-image-y, 50%); filter: brightness(.86) saturate(.84); transform: scale(var(--mc-image-zoom, 1)); transform-origin: var(--mc-image-origin-x, 50%) var(--mc-image-origin-y, 50%); }
.mc-downloads .mc-downloads-art--captioned { container-type: inline-size; isolation: isolate; }
.mc-downloads-art--captioned::after { background: linear-gradient(0deg, #090d13ed 0%, #090d1399 35%, #090d131a 75%, transparent); }
.mc-downloads .mc-downloads-tagline { position: relative; z-index: 1; margin: 16px 14px; color: #fff; font-family: 'Arial Black', Impact, 'DejaVu Sans', sans-serif; font-size: 16px; font-size: clamp(12px, 4.2cqi, 18px); font-weight: 900; line-height: 1.25; letter-spacing: .025em; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; -webkit-text-stroke: 2.5px #121212; paint-order: stroke fill; text-shadow: 0 3px 0 #090909, 0 4px 6px #000b; }
/* Overlays never add padding or empty bands around an image. Without artwork,
   keep the tagline in normal flow so text-only cards still have a visible header. */
.mc-downloads .mc-downloads-art:has(img[src]) .mc-downloads-tagline { position: absolute; inset: auto 14px 16px; margin: 0; }
.mc-downloads-tagline-line { display: block; min-height: 1.25em; }
.mc-downloads-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.mc-downloads-card-title { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 8px; padding: 6px 14px; border-bottom: 1px solid #303941; }
.mc-downloads-card-title h3 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.mc-downloads .mc-downloads-features-link { flex-shrink: 0; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: right; white-space: nowrap; }
.mc-downloads .mc-downloads-features-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mc-downloads-tag { display: inline-flex; align-items: center; border: 1px solid #4b5662; border-radius: 4px; background: #252c34; color: #c3ceda; font-size: 10px; font-weight: 600; padding: 3px 7px; white-space: nowrap; }
.mc-downloads-tag--premium { border-color: #386a87; background: #213443; color: #94d4fb; }
.mc-downloads-tag--dev { border-color: #6e5734; background: #352d20; color: #e9c481; }
.mc-downloads-release { padding-top: 0; }
.mc-downloads-release > span { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #a9b4c3; font-size: 11px; }
.mc-downloads-release b { font-size: 10px; font-weight: 500; color: #ced8e3; }
.mc-downloads-release strong { display: block; margin-top: 3px; font-size: 21px; line-height: 31.5px; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.mc-downloads-card--dev .mc-downloads-release strong { font-size: 19px; }
.mc-downloads-actions { margin-top: auto; padding-top: 10px; display: grid; }
.mc-downloads .mc-downloads-button { display: flex; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 10px 15px; min-height: 46px; border: 1px solid #435261; border-radius: 6px; font-size: 15px; font-weight: 700; line-height: 22px; background: #26313c; color: #e5f0f7; }
.mc-downloads .mc-downloads-button:hover { background: #314559; border-color: #6da2c3; }
.mc-downloads-button svg { width: 18px; height: 18px; stroke-width: 2; }
.mc-downloads .mc-downloads-button--disabled { background: #242a31; color: #a9b4c3; cursor: not-allowed; }
.mc-downloads .mc-downloads-requirement { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 14px 18px; border: 1px solid #343e49; border-radius: 6px; background: #171c21; font-size: 14px; line-height: 1.6; color: #e6edf4; }
.mc-downloads .mc-downloads-requirement--offset { grid-column: 2 / -1; }
.mc-downloads-requirement strong { font-weight: 700; }
.mc-downloads-requirement svg { color: #8bd2fb; }
.mc-downloads-history { border: 1px solid #343e49; border-radius: 8px; background: #171c21; }
.mc-downloads-history summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 19px; font-size: 12px; font-weight: 600; list-style: none; cursor: pointer; }
.mc-downloads-history summary::-webkit-details-marker { display: none; }
.mc-downloads-history summary > span { display: inline-flex; align-items: center; gap: 10px; }
.mc-downloads-history summary svg { width: 17px; height: 17px; color: #9bb4c7; }
.mc-downloads-history summary > svg { width: 13px; height: 13px; }
.mc-downloads-history[open] summary > svg { transform: rotate(90deg); }
.mc-downloads-table-scroll { overflow-x: auto; padding: 10px 20px; border-top: 1px solid #343e49; max-height: 440px; }
.mc-downloads table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; text-align: left; }
.mc-downloads th { font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: .07em; color: #a9b4c3; }
.mc-downloads th, .mc-downloads td { padding: 11px 8px; border-bottom: 1px solid #303a44; }
.mc-downloads th:first-child, .mc-downloads td:first-child { padding-left: 0; }
.mc-downloads th:last-child, .mc-downloads td:last-child { padding-right: 0; text-align: right; }
.mc-downloads tr:last-child td { border-bottom: 0; }
.mc-downloads td a { display: inline-flex; align-items: center; gap: 6px; }
.mc-downloads td svg { width: 14px; height: 14px; }
.mc-downloads-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mc-downloads-resources { display: flex; align-items: center; gap: 22px; font-size: 12px; padding-top: 22px; }
.mc-downloads-other { text-align: center; font-size: 14px; }
.mc-downloads-other a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1090px) {
    .mc-downloads-grid { --mc-download-gap: 14px; }
    .mc-downloads-tag { font-size: 9px; padding: 3px 5px; }
}
@media (max-width: 860px) {
    .mc-downloads .mc-downloads-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto 22px; gap: 18px; }
    .mc-downloads .mc-downloads-requirement { grid-column: 1 / -1; }
}
/* The resource wrapper otherwise repeats a link to the selector already open. */
html[data-template="product_download"] .p-title-pageAction > a.button[href*="product-download"],
html[data-template="product_download"] .p-title-pageAction:has(> a.button[href*="product-download"]:only-child) { display: none; }
/* This stylesheet is only loaded by the new selector. Undo the legacy mobile
   hero spacer and fixed-height title row without changing other resource pages. */
@media (max-width: 650px) {
    html[data-template="product_download"] .header--proxy { display: none; }
    html[data-template="product_download"] .headerimage { height: 100px; margin-bottom: 0; background-position: center; background-repeat: no-repeat; }
    html[data-template="product_download"] .p-body-inner { padding-top: 16px; }
    html[data-template="product_download"] .p-body-header { margin-bottom: 14px; }
    html[data-template="product_download"] .p-body-header .contentRow-main { min-width: 0; padding-left: 0; }
    html[data-template="product_download"] .p-body-header .p-title { flex-direction: column; align-items: stretch; gap: 10px; max-height: none; margin: 0; }
    html[data-template="product_download"] .p-body-header .p-title-value { width: 100%; max-width: none; height: auto; max-height: none; margin: 0; padding: 8px 12px; font-size: 28px; line-height: 1.3; white-space: normal; overflow: visible; overflow-wrap: anywhere; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 8px; }
    html[data-template="product_download"] .p-body-header .p-title-pageAction { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
    html[data-template="product_download"] .p-body-header .p-title-pageAction:has(> a.button[href*="product-download"]:only-child) { display: none; }
    html[data-template="product_download"] .p-body-header .p-title-pageAction .button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 40px; padding: 8px 12px; font-size: 13px; line-height: 20px; white-space: normal; text-align: center; }
    html[data-template="product_download"] .p-body-pageContent > .tabs.tabs--standalone { margin-top: 0; border-top: 1px solid rgba(255,255,255,.1); border-radius: 8px; }
}
@media (max-width: 540px) {
    .mc-downloads-heading { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
    .mc-downloads-heading h2 { font-size: clamp(20px, 5.5vw, 24px); line-height: 1.3; overflow-wrap: anywhere; }
    .mc-downloads .mc-downloads-terms { font-size: 14px; padding: 12px 14px; margin-bottom: 20px; }
    .mc-downloads-tag { font-size: 10px; padding: 3px 7px; }
    .mc-downloads .mc-downloads-requirement { align-items: flex-start; padding: 13px 14px; font-size: 13px; }
    .mc-downloads-requirement svg { margin-top: 2px; }
    .mc-downloads-table-scroll { padding: 10px 14px; }
}
