/* Market Feed data tables — scoped; leaves existing post and admin styling unchanged. */
.post-caption .twh-caption-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 14px 0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: rgba(8, 20, 43, 0.46);
    white-space: normal;
}
.post-caption .twh-caption-table {
    box-sizing: border-box;
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    min-width: 390px;
    color: #edf4ff;
    font-size: 13px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    white-space: normal;
}
.post-caption .twh-caption-table th,
.post-caption .twh-caption-table td {
    box-sizing: border-box;
    padding: 11px 9px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.17);
    vertical-align: middle;
    overflow-wrap: normal;
}
.post-caption .twh-caption-table thead th {
    background: rgba(33, 71, 123, 0.65);
    color: #f6d77c;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
}
.post-caption .twh-caption-table thead th:first-child,
.post-caption .twh-caption-table tbody th {
    text-align: left;
    width: 34%;
}
.post-caption .twh-caption-table tbody th {
    font-weight: 600;
    color: #f5f8ff;
}
.post-caption .twh-caption-table tbody td {
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}
.post-caption .twh-caption-table tbody tr:nth-child(even) {
    background: rgba(96, 165, 250, 0.06);
}
.post-caption .twh-caption-table tbody tr:last-child th,
.post-caption .twh-caption-table tbody tr:last-child td {
    border-bottom: 0;
}
.post-caption .twh-caption-table .twh-net-positive {color: #79e6a7; font-weight: 700;}
.post-caption .twh-caption-table .twh-net-negative {color: #ff9696; font-weight: 700;}
@media (max-width: 480px) {
    .post-caption .twh-caption-table {min-width: 0; font-size: 11px;}
    .post-caption .twh-caption-table th,
    .post-caption .twh-caption-table td {padding: 8px 4px;}
    .post-caption .twh-caption-table thead th {font-size: 10.5px;}
    .post-caption .twh-caption-table thead th:first-child,
    .post-caption .twh-caption-table tbody th {width: 31%;}
}

/* Compact, readable captions. This only affects Market Feed post descriptions.
   Original nl2br output plus preserved newline whitespace caused oversized gaps.
   Paragraphs are now safely generated by feed-lib.php with one small gap each. */
.post-caption {
    white-space: normal !important;
}
.post-caption .twh-caption-paragraph {
    display: block;
    padding: 0;
    margin: 0 0 0.55em;
    line-height: 1.52;
    white-space: normal;
}
/* Add a little breathing room only between two prose paragraphs.
   Single lines and list items stay compact; table spacing is unchanged. */
.post-caption .twh-caption-paragraph + .twh-caption-paragraph {
    margin-top: 0.85em;
}
.post-caption .twh-caption-paragraph:last-child {
    margin-bottom: 0;
}
.post-caption .twh-caption-table-wrap {
    margin-top: 0.6em;
    margin-bottom: 0.65em;
}
