/* ==========================================================================
   Theme overrides — review-page fixes
   ========================================================================== */

/* ── 1. Tables in review post body ───────────────────────────────────────── */
.post-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.5;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.post-text table td,
.post-text table th {
    border: 1px solid #DEE2E6;
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    color: #495057;
}
.post-text table th,
.post-text table thead td,
.post-text table tbody tr:first-child td {
    background: #F1F3F5;
    color: #034449;
    font-weight: 600;
}
.post-text table b,
.post-text table strong {
    color: #034449;
}
@media (max-width: 768px) {
    .post-text table { font-size: 14px; }
    .post-text table td,
    .post-text table th { padding: 8px 10px; }
}
/* On very narrow screens, make wide tables horizontally scrollable */
@media (max-width: 560px) {
    .post-text table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Inline images inside review body — don't blow out layout */
.post-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
}

/* ── 2. Visit Site button — vertically center next to image when no score/benefits ─── */
.post-content .post-header.post-header--no-adv {
    align-items: center;       /* vertically center children of the row */
}
.post-content .post-header--no-adv .post-adv {
    justify-content: center;   /* center button vertically inside post-adv column */
    align-items: center;
}
.post-content .post-header--no-adv .adv-first,
.post-content .post-header--no-adv .adv-second {
    display: none;             /* hide empty score/benefits blocks (they reserve space otherwise) */
}
