/* ── Hero ────────────────────────────────────────────────────────────────── */
#dl-hero {
    background: var(--dark);
    padding: 80px 0 72px;
    border-bottom: 1px solid var(--border);
}
.dl-hero-inner { max-width: 720px; }
.dl-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--white);
    margin: 0 0 20px;
    line-height: 1.1;
}
.dl-hero-sub { font-size: 1rem; color: var(--white); line-height: 1.7; margin: 0; max-width: 600px; }

/* ── Latest Versions: full-width list rows ───────────────────────────────── */
/* White bg (.section, no modifier); rows are NOT boxed — they read as a
   spec-sheet, separated only by 1px gray-200 rules, transparent background. */
#dl-latest { border-bottom: 1px solid var(--gray-200); }

.dl-rows {
    border-top: 1px solid var(--gray-200);
}

.dl-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--space-lg);
    padding-block: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s;
}
.dl-row:hover { background-color: var(--off-white); }

/* Tier 1 — Suite 2026: dominant. Red top accent + generous padding. */
.dl-row--featured {
    border-top: 2px solid var(--red);
    padding-block: var(--space-2xl);
}

/* Logo column (fixed-width) */
.dl-row__logo {
    display: flex;
    align-items: center;
    height: 40px;
}
.dl-row__logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}
.dl-row--featured .dl-row__logo { height: 60px; }   /* ~1.5× tier-2 */

/* Title + meta column */
.dl-row__heading {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}
.dl-row__title {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 800;
    color: var(--black);
    margin: 0;
    line-height: 1.3;
}
/* tier 1 title scales via the .h2 utility class on the h3 (semantics kept) */

/* Spec-sheet meta rows */
.dl-row__meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dl-row__meta-item {
    display: flex;
    gap: var(--space-sm);
    align-items: baseline;
}
.dl-row__meta-item dt {
    font-family: var(--font-display);
    font-size: var(--fs-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-black);
    flex-shrink: 0;
    min-width: 56px;
}
.dl-row__meta-item dd {
    font-size: var(--fs-caption);
    color: var(--color-black);
    margin: 0;
    line-height: 1.5;
}

/* Secondary doc links column */
.dl-row__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dl-row__links .dl-doc-link { font-size: 0.75rem; }

/* Download button column (right-aligned) */
.dl-row__action { justify-self: end; }

/* ── Secondary doc link ──────────────────────────────────────────────────── */
.dl-doc-link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s;
}
.dl-doc-link:hover { color: var(--red); }

/* ── Archive: Older Versions + Required Components side by side ──────────── */
/* surface-soft section; two top-aligned columns so the shorter doesn't stretch */
.dl-archive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* ── Accordion link list (shared) ────────────────────────────────────────── */
.dl-accordion-list { max-width: 860px; }

.dl-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.dl-link-list a {
    font-size: 0.88rem;
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.15s;
}
.dl-link-list a:hover { color: var(--red); }

/* ── CTA: white surface, gray-200 top border to anchor it ───────────────── */
#dl-cta {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--section-gap) 0;
}
.dl-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.dl-cta-heading {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.15;
}
.dl-cta-sub { font-size: 0.9rem; color: var(--color-black); line-height: 1.7; margin: 0; max-width: 480px; }
.dl-cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Narrower logo column; doc links drop below the title/meta block */
    .dl-row {
        grid-template-columns: 140px minmax(0, 1fr) auto;
        column-gap: var(--space-md);
    }
    .dl-row__links { grid-column: 2 / -1; }
    .dl-archive-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .dl-cta-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
}
@media (max-width: 640px) {
    /* Rows collapse to a single column: logo → title/meta → links → button */
    .dl-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        align-items: start;
    }
    .dl-row__links { grid-column: auto; }
    .dl-row__action { justify-self: stretch; }
    .dl-row__action .btn { width: 100%; }
}
