/* Download page: inline download status panel. */

.download-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.download-status-wrap {
    clear: both;
    padding-top: 20px;
}

.download-status-wrap[hidden] {
    display: none;
}

.download-status {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 18px 44px 18px 20px;
    background: #f6fafd;
    border: 1px solid #cfe0ef;
    border-left: 4px solid #4b9de7;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(24, 87, 136, 0.08);
    text-align: left;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.download-status[data-state="started"] {
    background: #f3faf3;
    border-color: #cfe8d0;
    border-left-color: #4caf50;
}

.download-status--enter {
    animation: download-status-in 0.3s ease-out;
}

@keyframes download-status-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-status__icon {
    position: relative;
    width: 32px;
    height: 32px;
    margin-top: 2px;
}

.download-status__spinner {
    position: absolute;
    inset: 0;
    border: 3px solid #cfe0ef;
    border-top-color: #4b9de7;
    border-radius: 50%;
    animation: download-status-spin 0.8s linear infinite;
}

.download-status__check {
    position: absolute;
    inset: 0;
    width: 32px;
    height: 32px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-status[data-state="started"] .download-status__spinner {
    display: none;
}

.download-status[data-state="started"] .download-status__check {
    opacity: 1;
    transform: scale(1);
}

@keyframes download-status-spin {
    to { transform: rotate(360deg); }
}

.download-info .download-status p {
    margin: 0 0 8px;
}

.download-info .download-status .download-status__title {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: bold;
    color: #185788;
}

.download-status[data-state="started"] .download-status__title {
    color: #2f6f33;
}

.download-status [data-when="started"],
.download-status[data-state="started"] [data-when="starting"],
.download-status[data-current="false"] [data-when="current"],
.download-status[data-platform="windows"] [data-when="other-platform"] {
    display: none;
}

.download-status[data-state="started"] [data-when="started"] {
    display: inline;
}

.download-status__meta {
    font-size: 13px;
    color: #4b5563;
}

.download-status code {
    padding: 1px 5px;
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 3px;
    font-size: 12px;
}

.download-status a {
    color: #185788;
    font-weight: bold;
    text-decoration: underline;
}

.download-info .download-status .download-status__steps {
    margin: 12px 0 0;
    padding-left: 20px;
}

.download-info .download-status .download-status__steps li {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    list-style: decimal;
}

.download-status__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
}

.download-status__close:hover,
.download-status__close:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
}

@media (prefers-reduced-motion: reduce) {
    .download-status--enter,
    .download-status__spinner {
        animation: none;
    }

    .download-status__check {
        transition: none;
    }
}

@media (max-width: 575px) {
    .download-status {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   Download and Customer Download pages, refreshed layout (approved design P4, option C: one row per edition).
   The pages render full width (ViewData["WideLayout"]). Selectors are scoped to .download-info so they win over
   the legacy inline ".download-info h2/h4/p" rules. Every edition and previous version stays an <li>, and previous
   versions keep their "... Version x.y.z" <h4>, because download.js relies on both.
   ========================================================================== */
.download-info .dl-rows { border: 1px solid var(--hw-line); border-radius: var(--hw-radius-lg); background: #fff;
  box-shadow: 0 1px 2px rgba(29, 35, 48, .06), 0 8px 24px rgba(29, 35, 48, .07); }
.download-info .dl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 26px 28px; }
.download-info .dl-row + .dl-row { border-top: 1px solid var(--hw-line); }
.download-info .dl-row > .icon-tile { width: 56px; height: 56px; border-radius: 14px; }
.download-info .dl-row > .icon-tile svg { width: 28px; height: 28px; }
.download-info .dl-row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--hw-ink); font-size: 21px; line-height: 1.3; font-weight: 700; }
.download-info .dl-row p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; }
.download-info .dl-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; font-size: 14.5px; font-weight: 600; }
.download-info .dl-row__action { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 250px; padding-top: 2px; }
.download-info .dl-ver { margin: 0; color: var(--hw-muted); font-size: 14px; text-align: center; }
.download-info .dl-row .download-status-wrap { grid-column: 2 / -1; padding-top: 4px; }

/* Previous versions */
.download-info .dl-prev { border: 1px solid var(--hw-line); border-radius: var(--hw-radius-lg); background: #fff; }
.download-info .dl-prev > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 22px; align-items: center; padding: 16px 22px; }
.download-info .dl-prev > li + li { border-top: 1px solid var(--hw-line); }
.download-info .dl-prev h4 { margin: 0; color: var(--hw-ink); font-size: 15.5px; line-height: 1.4; font-weight: 700; }
.download-info .dl-prev p { margin: 2px 0 0; color: var(--hw-muted); font-size: 14px; }
.download-info .dl-prev__history { font-size: 14.5px; font-weight: 600; }
.download-info .dl-prev .download-status-wrap { grid-column: 1 / -1; padding-top: 6px; }

/* The status panel inside the refreshed rows. */
.download-info .download-status { border-radius: 12px; box-shadow: none; }
.download-info .download-status p, .download-info .download-status li { font-size: 14.5px; line-height: 1.55; }
.download-info .download-status .download-status__meta { font-size: 13.5px; }

/* The Mac interest prompt sits between the editions and the previous versions. */
.download-info .mac-interest-prompt { margin-top: 28px; }

@media (max-width: 767px) {
  .download-info .dl-row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 22px 18px; }
  .download-info .dl-row > .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
  .download-info .dl-row > .icon-tile svg { width: 22px; height: 22px; }
  .download-info .dl-row h3 { font-size: 19px; }
  .download-info .dl-row__action { grid-column: 1 / -1; min-width: 0; }
  .download-info .dl-row .download-status-wrap { grid-column: 1 / -1; }
  .download-info .dl-prev > li { grid-template-columns: 1fr; padding: 16px 18px; }
  .download-info .dl-prev .btn { justify-self: start; }
}
