/* downloads.css — the tester downloads kit (/downloads, TD/TK; the layout Jeff settled on
   2026-11-04: the visitor's system first, one "Download {product}" or the one Installer) and
   the EULA gate interstitial (EUG, WF-29). Token-bound only (F-R01). */

/* ============================================================================
   Page shell + page-level states
   ========================================================================== */

.dlk {
    /* The kit is a reading surface, not a dashboard: it keeps the frame's width
       but never lets a row push the page sideways (PF-R03). */
    min-width: 0;
}

.dlk__gate-line {
    color: var(--text-primary);
    font-size: var(--font-size-1);
}

/* A rate-limit arrival is a state in the page's own voice, not a failure
   (P2F-R14) — the same quiet inset the product page's download section uses. */
.dlk__notice {
    color: var(--text-primary);
    background-color: var(--surface-raised);
    border-inline-start: 3px solid var(--accent);
    padding: var(--space-sm) var(--space-md);
}

/* The non-gating agreement update (TD-R06): one calm line that opens, never a
   banner competing with the builds. */
.dlk__eula-update {
    color: var(--text-secondary);
    font-size: var(--font-size--1);
}

.dlk__eula-changed {
    margin-block-start: var(--space-sm);
    color: var(--text-primary);
}

/* ============================================================================
   The kit: one reading column, so a product's button, its version, and its
   notes sit together instead of spread across the whole frame. No boxes: the
   products are separated by hairlines, and the buttons carry the emphasis.
   ========================================================================== */

.dlk__installer,
.dlk__entries,
.dlk__system,
.dlk__other,
.dlk > .dlk__publisher {
    max-width: var(--measure-prose-max);
    min-width: 0;
}

/* The Lucid Session Installer: one button, what it does, and who Windows will
   say published it, in that order (the approved wireframe). */
.dlk__installer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
}

.dlk__installer-what {
    margin-block-start: var(--space-xs);
    color: var(--text-primary);
}

.dlk__publisher {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-size--1);
}

/* F-R12: every download button is touch-size, at every width. */
.dlk__installer .btn,
.dlk__head .btn {
    min-height: 44px;
}

/* ---- One product ---- */

.dlk__entries {
    display: flex;
    flex-direction: column;
}

.dlk__entry {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
    padding-block: var(--space-lg);
    border-block-start: 1px solid var(--border-hairline);
}

.dlk__entry:last-child {
    border-block-end: 1px solid var(--border-hairline);
}

.dlk__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
    min-width: 0;
}

/* The name where no button carries it: body size, weight-led, like a row title. */
.dlk__name {
    font-size: var(--font-size-0);
}

.dlk__version {
    color: var(--text-secondary);
    font-size: var(--font-size--1);
}

/* A listed product's page and manual (Prototypes-v1 WF-94): nothing else on the site leads its list there. */
.dlk__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
    margin: 0;
}

/* Known issues: open, labeled, marked by a rule in the brand's gold rather than
   a box (TK-R01: absent, never an empty shell). */
.dlk__kib {
    padding-inline-start: var(--space-md);
    border-inline-start: 3px solid var(--accent-secondary);
}

.dlk__kib-label {
    margin-block-end: var(--space-xs);
    color: var(--accent-secondary);
    font-size: var(--font-size--1);
    font-weight: var(--font-weight-heading);
}

/* ---- Disclosures: release notes, install guide, the other system (all native
   <details>, so every one of them works with scripting off) ---- */

.dlk__notes > summary,
.dlk__guide > summary,
.dlk__other > summary {
    width: fit-content;
    cursor: pointer;
    /* A ≥44px target on touch without growing the line on the desktop (F-R12). */
    padding-block: var(--space-xs);
}

.dlk__notes > summary,
.dlk__guide > summary {
    color: var(--text-secondary);
    font-size: var(--font-size--1);
}

.dlk__notes > summary:hover,
.dlk__guide > summary:hover {
    color: var(--text-primary);
}

.dlk__releases {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: 0;
    padding: var(--space-sm) 0 var(--space-xs);
    list-style: none;
}

.dlk__release {
    color: var(--text-secondary);
}

.dlk__release-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-md);
    margin-block-end: var(--space-xs);
}

.dlk__release-version {
    color: var(--text-primary);
    font-weight: var(--font-weight-heading);
}

.dlk__date,
.dlk__minos,
.dlk__older {
    font-size: var(--font-size--1);
}

.dlk__release-sub {
    margin-block: var(--space-sm) var(--space-xs);
    color: var(--text-primary);
    font-size: var(--font-size--1);
    font-weight: var(--font-weight-heading);
}

.dlk__guide-body {
    padding-block: var(--space-xs) var(--space-sm);
    color: var(--text-secondary);
}

/* The other system, one quiet line in the accent that opens. */
.dlk__other > summary {
    padding-block: var(--space-sm);
    color: var(--accent);
}

.dlk__other > summary:hover {
    color: var(--accent-hover);
}

.dlk__other-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding-block-start: var(--space-md);
}

/* A visitor whose system can't be told gets both, each under its heading. */
.dlk__system {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.dlk__system h2 {
    font-size: var(--font-size-1);
}

.dlk__system + .dlk__system {
    margin-block-start: var(--space-lg);
}

/* ============================================================================
   EULA gate (EUG-R01, WF-29)
   ========================================================================== */

.eug {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    min-width: 0;
}

.eug__notice {
    color: var(--text-primary);
    background-color: var(--status-info-surface);
    border-inline-start: 3px solid var(--status-info-border);
    padding: var(--space-sm) var(--space-md);
}

.eug__changed {
    color: var(--text-secondary);
}

.eug__intro {
    color: var(--text-primary);
}

/* The capped scroller (EUG-R01): the agreement scrolls inside its own box so the
   action row is always in view below it — no scroll-to-bottom enforcement, so
   the cap must never be the thing that hides the decision. The cap is what the
   window has left once the site header, the gate's heading and notices, and the
   action row have theirs (about 27rem together); a flat share of the height
   (60vh) put the row below the fold on a laptop. The floor keeps a readable
   stretch of text in a short window. Overrides .edge-cues' horizontal axis: this
   box scrolls vertically, and the cues follow it. */
.eug__scroller {
    max-height: max(12rem, calc(100vh - 27rem));
    max-height: max(12rem, calc(100dvh - 27rem));
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--container-pad);
    background-color: var(--surface-raised);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-container);
    background-image:
        linear-gradient(to bottom, var(--surface-raised), transparent 24px),
        linear-gradient(to top, var(--surface-raised), transparent 24px),
        linear-gradient(to bottom, var(--scrim), transparent 24px),
        linear-gradient(to top, var(--scrim), transparent 24px);
    background-position: center top, center bottom, center top, center bottom;
    background-repeat: no-repeat;
    background-size: 100% 24px, 100% 24px, 100% 12px, 100% 12px;
    background-attachment: local, local, scroll, scroll;
}

/* D-Q4: consent-class symmetry — accept and decline are peer controls, and the
   accent fill is the only difference between them. Nothing here may add weight
   to one side (no extra size, no separator, no reordering by importance). */
.eug__actions {
    justify-content: flex-start;
}

/* Where the window is too short even for the floor (a phone on its side, a narrow
   one with the change notice above), the action row holds the window's bottom edge
   instead of falling below it. In a window with room it sits where it is laid out. */
.eug form {
    position: sticky;
    bottom: 0;
    padding-block: var(--space-sm);
    background-color: var(--surface-page);
}

.eug__later {
    margin: 0;
}

/* ============================================================================
   F-R12: below 768 the disclosures and the older-version links grow to the
   ≥44px touch size. Nothing here may introduce a horizontal scrollbar at 320px.
   ========================================================================== */
@media (max-width: 767px) {
    .dlk__notes > summary,
    .dlk__guide > summary,
    .dlk__other > summary {
        padding-block: var(--space-md);
    }

    .dlk__older {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .eug__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .eug__actions .btn {
        width: 100%;
        min-height: 44px;
        text-align: center;
    }
}
