/* RBS Comparison Table — Frontend Styles */

.rbs-table-wrap {
    font-family: inherit;
    margin: 2em 0;
}

/* Stats banner */
.rbs-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    align-items: center;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 20px;
}
.rbs-stat         { padding: 0 4px; }
.rbs-stat strong  { color: #1a202c; }
.rbs-stat-sep     { color: #cbd5e0; padding: 0 4px; }

/* Table container */
.rbs-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rbs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.rbs-table thead th {
    background: #1a365d;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
}

.rbs-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background .15s;
}
.rbs-table tbody tr:last-child { border-bottom: none; }
.rbs-table tbody tr:hover      { background: #f7fafc; }

.rbs-table td {
    padding: 13px 14px;
    vertical-align: middle;
    color: #2d3748;
}

/* Own row highlight */
.rbs-row-own {
    background: #ebf8ff !important;
    border-left: 4px solid #3182ce;
}
.rbs-row-own:hover { background: #e1f0fb !important; }

/* Best Value badge */
.rbs-best-badge {
    display: inline-block;
    background: #3182ce;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 4px;
}

/* Provider name column */
.rbs-col-name        { min-width: 160px; }
.rbs-legal-name      { color: #718096; font-size: 12px; }

/* Price column */
.rbs-col-price { min-width: 90px; }
.rbs-price {
    font-size: 18px;
    font-weight: 700;
    color: #22543d;
}
.rbs-not-listed {
    color: #a0aec0;
    font-style: italic;
    font-size: 13px;
}
.rbs-not-listed + small { color: #a0aec0; font-size: 12px; display: block; margin-top: 2px; }

/* Verified / dash */
.rbs-verified-check { color: #48bb78; }
.rbs-dash           { color: #cbd5e0; }

/* Buttons */
.rbs-btn-primary,
.rbs-btn-secondary {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}
.rbs-btn-primary  { background: #3182ce; color: #fff !important; }
.rbs-btn-secondary{ background: #edf2f7; color: #2d3748 !important; border: 1px solid #e2e8f0; }
.rbs-btn-primary:hover  { opacity: .88; }
.rbs-btn-secondary:hover{ background: #e2e8f0; }

/* Methodology section */
.rbs-methodology {
    margin-top: 28px;
    padding: 20px 24px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #4a5568;
}
.rbs-methodology h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #1a202c;
}
.rbs-methodology p   { margin: 0 0 10px; line-height: 1.6; }
.rbs-methodology a   { color: #3182ce; }
.rbs-sources         { margin: 8px 0 0; padding-left: 20px; }
.rbs-sources li      { margin-bottom: 4px; }

/* Disclaimer */
.rbs-disclaimer {
    margin-top: 14px;
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.5;
}

/* Author byline (E-E-A-T signal) */
.rbs-byline {
    font-size: 13px;
    color: #718096;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.rbs-byline strong       { color: #2d3748; }
.rbs-byline-sep          { color: #cbd5e0; padding: 0 6px; }
.rbs-byline sup a        { color: #3182ce; text-decoration: none; font-weight: 600; }

/* ABC affiliation disclaimer — prominent legal/trust callout */
.rbs-abc-callout {
    background: #fff8e1;
    border-left: 4px solid #d69e2e;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #5c3d00;
}
.rbs-abc-callout p       { margin: 0; }
.rbs-abc-callout strong  { color: #1a202c; }
.rbs-abc-callout a       { color: #b7791f; font-weight: 600; }

/* Direct-answer intro */
.rbs-intro {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.65;
    color: #2d3748;
}
.rbs-intro p             { margin: 0 0 12px; }
.rbs-intro strong        { color: #1a202c; }
.rbs-intro a             { color: #3182ce; }
.rbs-intro-cta {
    font-style: italic;
    color: #4a5568;
}

/* Answer-engine H2 sections */
.rbs-answers {
    margin: 36px 0 28px;
}
.rbs-answers h2 {
    font-size: 22px;
    margin: 28px 0 12px;
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}
.rbs-answers h2:first-child { margin-top: 0; }
.rbs-answers p {
    line-height: 1.65;
    margin: 0 0 12px;
    color: #2d3748;
}
.rbs-answers a           { color: #3182ce; }
.rbs-answers strong      { color: #1a202c; }

.rbs-criteria {
    margin: 12px 0 16px;
    padding-left: 22px;
    line-height: 1.7;
}
.rbs-criteria li         { margin-bottom: 4px; }

/* FAQ section */
.rbs-faq {
    margin: 32px 0 24px;
}
.rbs-faq h2 {
    font-size: 22px;
    margin: 0 0 16px;
    color: #1a202c;
}
.rbs-faq h3 {
    font-size: 16px;
    margin: 20px 0 6px;
    color: #1a202c;
}
.rbs-faq p {
    margin: 0 0 12px;
    line-height: 1.6;
    color: #2d3748;
}
.rbs-faq a               { color: #3182ce; }
.rbs-faq strong          { color: #1a202c; }

/* Mobile */
@media (max-width: 640px) {
    .rbs-table thead th,
    .rbs-table td { padding: 10px 10px; font-size: 13px; }
    .rbs-price    { font-size: 16px; }
    .rbs-stats-bar{ font-size: 13px; }
    .rbs-stat-sep { display: none; }
    .rbs-stat     { display: block; width: 100%; }
}
