/* ── Downloads page — dark mode exclusivo ── */

body.shvterm-site .dl-hero {
    padding: 4rem 0 2.5rem;
    text-align: center;
    border-bottom: 1px solid #1f2937;
}

body.shvterm-site .dl-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: .5rem;
}

body.shvterm-site .dl-subtitle {
    color: #9ca3af;
    font-size: 1rem;
}

body.shvterm-site .dl-subtitle strong {
    color: #d1d5db;
}

/* ── Grid de plataformas ── */

body.shvterm-site .dl-platforms {
    padding: 3rem 0 4rem;
}

body.shvterm-site .dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ── Card ── */

body.shvterm-site .dl-card {
    background: #1d1e2c;
    border: 1px solid #374151;
    border-radius: .75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.shvterm-site .dl-card-unavailable {
    opacity: .55;
}

body.shvterm-site .dl-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #374151;
    background: #16172a;
}

body.shvterm-site .dl-os-icon {
    width: 24px;
    height: 24px;
    color: #6b7280;
    flex-shrink: 0;
}

body.shvterm-site .dl-os-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

body.shvterm-site .dl-card-version-tag {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 500;
    color: #9ca3af;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
}

body.shvterm-site .dl-card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

/* ── Botões de formato ── */

body.shvterm-site .dl-formats {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

body.shvterm-site .dl-format-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

body.shvterm-site .dl-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    border-radius: .5rem;
    background: #1f2937;
    border: 1px solid #374151;
    color: #d1d5db;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s, border-color .15s;
}

body.shvterm-site .dl-btn:hover {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.shvterm-site .dl-btn-size {
    margin-left: auto;
    font-size: .75rem;
    color: #6b7280;
    font-weight: 400;
}

/* ── SHA-256 ── */

body.shvterm-site .dl-sha {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: .375rem;
    padding: .45rem .75rem;
    font-size: .75rem;
    min-width: 0;
}

body.shvterm-site .dl-sha-label {
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

body.shvterm-site .dl-sha-value {
    color: #9ca3af;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    background: transparent;
}

body.shvterm-site .dl-sha-copy {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: .7rem;
    padding: 0 .25rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s;
}

body.shvterm-site .dl-sha-copy:hover {
    color: #d1d5db;
}

/* ── Em breve ── */

body.shvterm-site .dl-card-soon {
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

body.shvterm-site .dl-soon-text {
    color: #4b5563;
    font-size: .875rem;
    margin: 0;
}

/* ── Nota de verificação ── */

body.shvterm-site .dl-note {
    text-align: center;
    color: #6b7280;
    font-size: .8rem;
    margin-top: 2rem;
}

body.shvterm-site .dl-note a {
    color: #9ca3af;
    text-decoration: underline;
}

body.shvterm-site .dl-note a:hover {
    color: #d1d5db;
}

/* ── Título de seção compartilhado ── */

body.shvterm-site .dl-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 1.75rem;
}

body.shvterm-site .dl-no-content {
    color: #4b5563;
    font-size: .9rem;
}

/* ── Patch Notes ── */

body.shvterm-site .dl-changelog {
    padding: 3rem 0 4rem;
    border-top: 1px solid #1f2937;
}

body.shvterm-site .dl-changelog-entry {
    border-left: 2px solid #374151;
    padding: 0 0 2rem 1.5rem;
    margin-bottom: .25rem;
    position: relative;
}

body.shvterm-site .dl-changelog-entry::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #374151;
}

body.shvterm-site .dl-changelog-entry:first-child::before {
    background: #4c9fd4;
}

body.shvterm-site .dl-changelog-entry:first-child {
    border-left-color: #4c9fd4;
}

body.shvterm-site .dl-changelog-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

body.shvterm-site .dl-changelog-version {
    font-size: .95rem;
    font-weight: 700;
    color: #d1d5db;
    font-family: 'Courier New', monospace;
}

body.shvterm-site .dl-changelog-date {
    font-size: .78rem;
    color: #4b5563;
}

body.shvterm-site .dl-changelog-body {
    font-size: .875rem;
    color: #9ca3af;
    line-height: 1.7;
    white-space: pre-line;
}

body.shvterm-site .dl-changelog-empty {
    color: #374151;
    font-size: .875rem;
    margin: 0;
}

/* ── Versões Antigas ── */

body.shvterm-site .dl-history {
    padding: 3rem 0 4rem;
    border-top: 1px solid #1f2937;
}

body.shvterm-site .dl-history-note {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

body.shvterm-site .dl-history-note a {
    color: #9ca3af;
    text-decoration: underline;
    transition: color .15s;
}

body.shvterm-site .dl-history-note a:hover {
    color: #d1d5db;
}

body.shvterm-site .dl-history-table-wrap {
    overflow-x: auto;
    border-radius: .5rem;
    border: 1px solid #1f2937;
}

body.shvterm-site .dl-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

body.shvterm-site .dl-history-table thead tr {
    background: #16172a;
}

body.shvterm-site .dl-history-table th {
    text-align: left;
    padding: .75rem 1rem;
    color: #4b5563;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    border-bottom: 1px solid #1f2937;
}

body.shvterm-site .dl-history-table td {
    padding: .75rem 1rem;
    color: #9ca3af;
    border-bottom: 1px solid #111827;
}

body.shvterm-site .dl-history-table tbody tr:last-child td {
    border-bottom: none;
}

body.shvterm-site .dl-history-table tbody tr:hover td {
    background: #1d1e2c;
}

body.shvterm-site .dl-history-ver {
    font-family: 'Courier New', monospace;
    color: #d1d5db;
    font-size: .85rem;
}

body.shvterm-site .dl-history-size {
    color: #4b5563;
}

body.shvterm-site .dl-history-dl {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    border-radius: .375rem;
    background: #1f2937;
    border: 1px solid #374151;
    color: #9ca3af;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

body.shvterm-site .dl-history-dl:hover {
    background: #374151;
    color: #f9fafb;
}

/* Alerta de download indisponível (binário ainda não espelhado no servidor) */
body.shvterm-site .dl-unavailable-alert {
    margin: 1rem auto 0;
    max-width: 560px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: .5rem;
    padding: .65rem 1rem;
    color: #fbbf24;
    font-size: .85rem;
}

body.shvterm-site .dl-unavailable-alert code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8em;
    color: #fde68a;
}
