/* ═══════════════════════════════════════════
   Vista Blocks — content blocks for articles
   ═══════════════════════════════════════════ */

/* ── Common ── */
.vista-block {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 4px;
}

/* ── Video ── */
.vista-video {
    margin: 20px 0;
}
.vista-video iframe,
.vista-video video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Info block ── */
.vista-info {
    border: 1px solid #00897B;
    background: #E0F2F1;
    color: #333;
}

/* ── Warning block ── */
.vista-warning {
    border: 1px solid #FF9800;
    background: #FFF3E0;
    color: #aa3510;
}

/* ── Highlight / key point ── */
.vista-highlight {
    border-left: 4px solid #48a0dc;
    background: #f0f7fc;
}

/* ── Download block ── */
.vista-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    background: #f9f9f9;
}
.vista-download-meta {
    color: #888;
    font-size: 12px;
}
.vista-download-btn {
    display: inline-block;
    background: #48a0dc;
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    flex-shrink: 0;
}
.vista-download-btn:hover {
    background: #3a8cc4;
    color: #fff;
}

/* ── Simple audio player ── */
.vista-audio {
    border: 1px solid #e0e0e0;
    background: #fafafa;
}
.vista-audio-title {
    font-weight: 700;
}
.vista-audio-format {
    color: #888;
    font-size: 12px;
}
.vista-audio audio {
    width: 100%;
    margin-top: 8px;
}

/* ── Music player card (new) ── */
.vista-music {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
    border-radius: 6px;
    overflow: hidden;
    background: #555;
}
.vista-music-cover {
    flex-shrink: 0;
    padding: 15px;
    display: flex;
    align-items: center;
}
.vista-music-cover img {
    width: 120px;
    height: auto;
    display: block;
    border-radius: 4px;
}
.vista-music-body {
    flex: 1;
    padding: 20px 25px 20px 15px;
    background: transparent;
}
.vista-music-name {
    font-size: 13pt;
    font-weight: 700;
    color: #fff;
}
.vista-music audio {
    width: 100%;
    margin-top: 10px;
}
.vista-music-meta {
    font-size: 9pt;
    font-weight: 700;
    color: #fff;
    margin-top: 6px;
}
.vista-music-meta span {
    font-weight: 400;
    color: #ccc;
}
.vista-music-download {
    margin-top: 4px;
    font-size: 9pt;
}
.vista-music-download a {
    color: #ed7700;
    font-weight: 700;
    font-style: italic;
}
.vista-music-download a:hover {
    color: #fff;
}
.vista-music-tag {
    color: #ed7700;
    font-weight: 700;
    font-size: 9pt;
    margin-top: 4px;
}

/* ── Legacy music player (old table-based) ── */
.excerpt table:has(td[bgcolor="#666666"]),
.excerpt table:has(td[bgcolor="#666"]),
.text table:has(td[bgcolor="#666666"]),
.text table:has(td[bgcolor="#666"]) {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0;
    background-color: #555 !important;
}
.excerpt table:has(td[bgcolor="#666666"]) > tbody > tr > td,
.excerpt table:has(td[bgcolor="#666"]) > tbody > tr > td,
.text table:has(td[bgcolor="#666666"]) > tbody > tr > td,
.text table:has(td[bgcolor="#666"]) > tbody > tr > td {
    border: none !important;
    background: transparent !important;
}
.excerpt table:has(td[bgcolor="#666666"]) > tbody > tr > td:first-child,
.text table:has(td[bgcolor="#666666"]) > tbody > tr > td:first-child {
    width: 120px !important;
    padding: 15px !important;
    vertical-align: middle !important;
}
.excerpt table:has(td[bgcolor="#666666"]) > tbody > tr > td:first-child img,
.text table:has(td[bgcolor="#666666"]) > tbody > tr > td:first-child img {
    width: 120px !important;
    height: auto !important;
    display: block !important;
    float: none !important;
    border-radius: 4px;
}
td[bgcolor="#666666"],
td[bgcolor="#666"] {
    background-color: transparent !important;
    padding: 20px 25px 20px 15px !important;
    vertical-align: middle !important;
}
td[bgcolor="#666666"] audio,
td[bgcolor="#666"] audio {
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 !important;
    display: block !important;
}
td[bgcolor="#666666"] span,
td[bgcolor="#666"] span {
    line-height: 1.8;
}

/* ── Image + text card ── */
.vista-card {
    display: flex;
    gap: 15px;
    border: 1px solid #eee;
    background: #fafafa;
}
.vista-card-img img {
    width: 150px;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* ── Divider ── */
.vista-divider {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #e0e0e0;
}

/* ── Article header ── */
.vista-header {
    margin: 0 0 20px 0;
}
.vista-header img {
    width: 100%;
    height: auto;
    display: block;
}
.vista-header-text {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* ── Quote / pull-quote block ── */
.vista-quote {
    background: #E3EDEE;
    border: none;
    padding: 25px 30px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

/* ── Photo caption ── */
.vista-caption {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
    margin-top: -5px;
    margin-bottom: 15px;
    font-style: italic;
}

/* ── File card (download block) ── */
.vista-filecard {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 15px 0;
    padding: 15px 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}
.vista-filecard-icon {
    flex-shrink: 0;
}
.vista-filecard-icon img {
    width: 48px;
    height: auto;
    display: block;
}
.vista-filecard-body {
    flex: 1;
}
.vista-filecard-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}
.vista-filecard-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
}
.vista-filecard-link {
    font-size: 13px;
    color: #48a0dc;
    font-weight: 600;
}
.vista-filecard-link:hover {
    color: #333;
}
