/* /downloads/ — CMS file index + guides (layout + TOC: shared api-doc-* with page-api-doc) */
html.page-downloads,
body.page-downloads {
    scroll-behavior: smooth;
}

.dl-sidebar-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    background: #f8fafc;
    margin-bottom: 1rem;
}

.dl-sidebar-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0 0 0.85rem;
    font-weight: 700;
}

.dl-sidebar-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dl-sidebar-card li + li {
    margin-top: 0.5rem;
}

.dl-sidebar-card a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.dl-sidebar-card a:hover {
    text-decoration: underline;
    color: var(--link-color-hover);
}

.dl-meta {
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 1.25rem;
}

.dl-meta code {
    font-size: 0.8em;
    background: rgba(26, 115, 232, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.dl-callout {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(26, 115, 232, 0.25);
    background: rgba(26, 115, 232, 0.06);
}

.dl-callout--warn {
    border-color: rgba(234, 179, 8, 0.45);
    background: rgba(254, 243, 199, 0.35);
}

.dl-callout p:last-child {
    margin-bottom: 0;
}

.dl-notice-list {
    margin: 0;
    padding-left: 1.15rem;
}

.dl-notice-list li {
    margin-bottom: 0.65rem;
    color: var(--text-muted, #475569);
    font-size: 0.95rem;
}

.dl-section-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dl-section-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1e293b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dl-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dl-file-row:last-child {
    border-bottom: none;
}

.dl-file-label {
    flex: 1 1 220px;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
}

.dl-file-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.dl-size-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
}

.dl-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    background: var(--primary, #1a73e8);
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    transition: background 0.15s ease;
}

.dl-btn-download:hover {
    background: var(--primary-dark, #1557b0);
    color: #fff !important;
}

/* ZIP cards sit inside api-doc-section */
.page-downloads .api-doc-section .dl-section-card:first-of-type {
    margin-top: 0.5rem;
}
