/* Dedicated product download page. Kept in its own file, loaded only by that page, so the
   product page's own stylesheet stays untouched. */

.dl-hero {
    padding-bottom: 1.5rem;
}

.dl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: start;
}

.dl-hero-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

/* The site's hero type is sized for a full-width headline. Here it shares the row with the
   action card, so it steps down rather than wrapping one word per line. */
.dl-title {
    font-size: clamp(2rem, 3.1vw, 2.9rem);
    line-height: 1.12;
    margin-bottom: .9rem;
}

.dl-lede {
    max-width: 46ch;
}

@media (max-width: 900px) {
    .dl-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }
}

.dl-section {
    padding: 2rem 0 4rem;
}

.dl-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    background: #fff;
}

.dl-card-primary {
    border-color: #c7dcf7;
    background: #f7fbff;
    padding: 2rem 2rem 1.75rem;
}

.dl-card-head {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .75rem;
}

.dl-badge {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.dl-badge-recommended {
    background: #dff3e4;
    color: #1b6b3a;
}

.dl-badge-platform {
    background: #eceff3;
    color: #52606d;
}

.dl-card-title {
    margin: 0 0 .4rem;
    font-size: 1.4rem;
    color: #0f2540;
}

.dl-card-summary {
    margin: 0 0 1rem;
    color: #52606d;
}

.dl-card-note {
    margin: .75rem 0 0;
    font-size: .9rem;
    color: #7b8794;
}

.dl-command,
.dl-error {
    background: #0f2540;
    color: #e6edf6;
    border-radius: 8px;
    padding: .9rem 1.1rem;
    font-size: .92rem;
    line-height: 1.55;
    margin: 0 0 1.15rem;
    /* Wrap rather than scroll. A scrollbar under every command is noise, and a package id is
       the one thing on this page a reader must be able to see in full at a glance. */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dl-command code,
.dl-error code {
    white-space: inherit;
    overflow-wrap: inherit;
}

.dl-error {
    background: #fdf3f3;
    color: #8a2020;
    border: 1px solid #f0cfcf;
}

/* The site styles <code> globally, and that rule beats a colour set on the <pre>, which left
   dark text sitting on the dark command block. Colour the code element itself, and clear the
   background it inherits so it does not paint a light chip inside a dark panel. */
.dl-command code,
.dl-error code {
    background: transparent;
    padding: 0;
    border: 0;
    font: inherit;
    color: inherit;
}

.dl-command,
.dl-command code {
    color: #e8eef7;
}

.dl-error,
.dl-error code {
    color: #8a2020;
}

.dl-action {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: .7rem 1.4rem;
    border-radius: 8px;
    border: 1px solid #c3ccd8;
    color: #0f2540;
    font-weight: 600;
    text-decoration: none;
}

.dl-action:hover {
    border-color: #8fa5bf;
}

.dl-action-primary {
    background: #f0a51d;
    border-color: #f0a51d;
    color: #20160a;
}

.dl-action-primary:hover {
    background: #dd9613;
    border-color: #dd9613;
}

.dl-alt-heading {
    margin: 2.5rem 0 1rem;
    font-size: 1.15rem;
    color: #0f2540;
}

.dl-alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.dl-motw {
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.dl-motw-title {
    font-size: 1.35rem;
    color: #0f2540;
    margin: 0 0 1rem;
}

.dl-motw-lede {
    color: #52606d;
}

.dl-steps {
    margin: 1.25rem 0 1.75rem;
    padding-left: 1.35rem;
    line-height: 1.75;
}

.dl-steps li {
    margin-bottom: .4rem;
}

.dl-figure {
    margin: 0 0 1.5rem;
}

.dl-figure img {
    /* Never upscale a screenshot: it shrinks to fit a narrow viewport, but at its natural size
       or wider it stays 1:1, so the dialog text is as crisp as on the reader's own screen. */
    width: auto;
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dl-figure figcaption {
    margin-top: .6rem;
    font-size: .92rem;
    color: #7b8794;
}

.dl-motw-foot {
    color: #52606d;
}

.dl-back {
    margin-top: 2.5rem;
}

.dl-alt-warning {
    margin: 0 0 1.25rem;
    padding: .9rem 1.1rem;
    border-left: 4px solid #c98a1b;
    background: #fdf6e7;
    color: #6b4d10;
}

.dl-command-wrap {
    position: relative;
}

.dl-command-wrap .dl-command {
    padding-right: 5.5rem;
    min-height: 3.1rem;
}

.dl-copy {
    position: absolute;
    top: .55rem;
    right: .55rem;
    padding: .3rem .75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
    color: #e8eef7;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.dl-copy:hover {
    background: rgba(255, 255, 255, .2);
}

.dl-steps-grid,
.dl-alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.dl-card-caution {
    border-color: #ecd9b0;
    background: #fffdf7;
}

.dl-badge-caution {
    background: #fdf0d5;
    color: #8a5a00;
}

/* A command block following the button needs air between them, not a seam. */
.dl-action + .dl-command-wrap,
.dl-action + .dl-command {
    margin-top: .35rem;
}
