/* The download page's styles (README.md beside the kit). Retail's download page and the AdvEnt app icon theme
   (Pictures/AdvEnt Brand/Brand/advent-app-icon): the white ae emblem on brand navy #022C78, with the DELI family
   orange #FF6D00 as the band under it, as in every aeDeli app icon. Orange only as a band: white text on it is
   2.82:1, so text and buttons stay navy. Light only; Windows' high contrast keeps the system colours. */
:root {
    --navy: #022C78;
    --navy-mid: #06358A;
    --navy-light: #0D47A1;
    --navy-top: #0A3C93;
    --sky: #8FB4FF;
    --ink: #0B1F44;
    --text: #2A3346;
    --label-ink: #3A4357;
    --muted: #5B6476;
    --page: #FFFFFF;
    --footer: #FBFCFE;
    --rule: #E7EAF0;
    --border: #CFD6E2;
    --hairline: #E1E6EF;
    --notice: #F3F6FC;
    --card-end: #F7F9FD;
    --tint: #E8EEFB;
    --failed: #C62828;
    --failed-soft: #FCEEEE;
    --failed-ink: #8E1F1F;
    --off-fill: #AEB9CF;
    --deli: #FF6D00;

    --text-face: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --display-face: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono-face: "Cascadia Mono", Consolas, ui-monospace, monospace;

    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page);
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--text-face);
    font-size: 15px;
    line-height: 1.5;
}

/* Across the top: the white emblem on navy, the product in white, the DELI band under it. */
.band {
    background: linear-gradient(75deg, var(--navy), var(--navy-mid) 55%, var(--navy-light));
    border-bottom: 6px solid var(--deli);
    color: #FFFFFF;
}

.band-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 880px;
    margin: 0 auto;
    padding: 22px 16px;
}

.mark {
    display: block;
    flex: none;
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(143, 180, 255, 0.35);
}

.product {
    margin: 0;
    font-family: var(--display-face);
    font-weight: 600;
    font-size: 21px;
    line-height: 1.2;
}

.subline {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.7);
}

main {
    max-width: 880px;
    margin: 0 auto;
    padding: 8px 16px 40px;
}

section {
    margin-top: 28px;
}

.section-heading {
    margin: 0 0 4px;
    font-family: var(--display-face);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    color: var(--ink);
}

.lead {
    margin: 0 0 14px;
    color: var(--muted);
    max-width: 68ch;
}

/* The wizard's product card: a white to blue-white panel with a hairline rim. */
.card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0 0 12px;
    padding: 16px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: linear-gradient(var(--page), var(--card-end));
    box-shadow: 0 4px 12px rgba(2, 44, 120, 0.04);
}

.icon {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.details {
    min-width: 0;
}

.card h3 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.35;
    color: var(--ink);
}

.ring {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    vertical-align: 2px;
}

.note {
    margin: 2px 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.note.warning {
    color: var(--failed-ink);
    font-weight: 600;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 0;
    font-size: 13px;
}

.facts div {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.facts .hash {
    flex-basis: 100%;
}

.facts dt {
    flex: none;
    color: var(--label-ink);
    font-weight: 600;
    white-space: nowrap;
}

.facts dd {
    margin: 0;
    min-width: 0;
    color: var(--text);
}

code,
pre {
    font-family: var(--mono-face);
    font-size: 12.5px;
}

.facts code {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.status {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.status:empty {
    display: none;
}

.status.failed {
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--failed-soft);
    color: var(--failed-ink);
}

/* The wizard's primary button: 44 high, navy, Segoe UI Semibold. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    background: linear-gradient(var(--navy-top), var(--navy));
    box-shadow: inset 0 0 0 1px rgba(143, 180, 255, 0.4);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover {
    background: linear-gradient(var(--navy-light), var(--navy-top));
}

.button:active {
    background: var(--navy);
}

.button:focus-visible {
    outline: 2px solid var(--navy-light);
    outline-offset: 3px;
}

.button[aria-disabled="true"] {
    background: var(--off-fill);
    box-shadow: none;
    cursor: default;
}

.command {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--notice);
    color: var(--ink);
    overflow-x: auto;
}

.footer {
    border-top: 1px solid var(--rule);
    background: var(--footer);
    color: var(--muted);
    font-size: 13px;
}

.footer p {
    max-width: 880px;
    margin: 0 auto;
    padding: 16px;
}

@media (max-width: 600px) {
    .card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .icon {
        width: 48px;
        height: 48px;
        border-radius: 9px;
    }

    .card .button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Windows' high contrast: the system colours, with an outline where colour drew a shape. */
@media (forced-colors: active) {
    .button,
    .ring,
    .card,
    .status.failed {
        border: 1px solid CanvasText;
    }

    .button[aria-disabled="true"] {
        color: GrayText;
        border-color: GrayText;
    }
}
