/* ═══════════════════════════════════════════════════════════
   balboa.results-summary.css
   Added: May 15, 2026
   Styles for _inc_results_summary_page.cfm and
   _inc_results_summary_compact.cfm. Email mode uses inline styles only.
   ═══════════════════════════════════════════════════════════ */

/* ── Container ── */
.results-summary {
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e2e6e0;
    border-radius: 6px;
    padding: 18px 20px;
}

/* ── Header ── */
.results-summary-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2e6;
}

.results-summary-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    color: #0f4717;
    line-height: 1.2;
}

.results-summary-totals {
    font-size: 13px;
    color: #777;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ── Empty state ── */
.results-summary-empty {
    padding: 16px;
    background: #fafafa;
    border-left: 3px solid #ccc;
    color: #777;
    font-size: 14px;
}

.results-summary-empty .fa {
    margin-right: 6px;
    color: #999;
}

/* ── Flight section ── */
.results-flight {
    margin-bottom: 18px;
}

.results-flight:last-of-type {
    margin-bottom: 8px;
}

.results-flight-header {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #2e7d32;
    margin-bottom: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f7f9f3 0%, #eef2e6 100%);
    border-radius: 4px;
}

.results-flight-format {
    font-weight: 500;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}

/* ── Table ── */
.results-flight-table,
.results-ctp-table {
    margin-bottom: 0;
}

.results-flight-table thead th,
.results-ctp-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #888;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding: 6px 8px;
}

.results-flight-table tbody td,
.results-ctp-table tbody td {
    padding: 8px;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
    border-top: 1px solid #f5f5f5;
}

.results-flight-table tbody tr:first-child td,
.results-ctp-table tbody tr:first-child td {
    border-top: none;
}

/* ── Column widths ── */
.results-flight-table .rs-place,
.results-ctp-table .rs-place {
    width: 190px;
    font-weight: 600;
    color: #555;
}

.results-flight-table .rs-place .rs-note,
.results-ctp-table .rs-place .rs-note {
    display: inline-block;
    margin-top: 2px;
    font-weight: 400;
    font-style: italic;
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

.results-flight-table .rs-winner,
.results-ctp-table .rs-winner {
    font-weight: 500;
}

.results-flight-table .rs-score {
    width: 70px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #333;
}

.results-flight-table .rs-net {
    font-weight: 700;
}

/* ── Par-relative score coloring ──
   Under par → red; even par → blue; over par → default (black/333).
   The Int() output sits inside a <span> whose class is set by the
   partial based on the score relative to course_par.
   Generic class so both table-mode (page) and inline-mode (compact)
   pick it up. */
.rs-under-par {
    color: #c62828;
}

.rs-even-par {
    color: #1565c0;
}

/* Keep .rs-net bold styling intact for table mode net columns */
.results-flight-table .rs-net .rs-under-par,
.results-flight-table .rs-net .rs-even-par {
    font-weight: 700;
}

.results-flight-table .rs-purse,
.results-ctp-table .rs-purse {
    width: 90px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #2e7d32;
}

/* ── Highlighted row (logged-in member) ── */
.results-flight-table .rs-me,
.results-ctp-table .rs-me {
    background: #fffbe6;
    box-shadow: inset 3px 0 0 0 #2e7d32;
}

.rs-you-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background: #2e7d32;
    border-radius: 3px;
    vertical-align: middle;
}

/* ── CTP section ── */
.results-ctp {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef2e6;
}

.results-ctp h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #2e7d32;
    margin: 0 0 8px 0;
}

/* ── Footer CTA ── */
.results-summary-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2e6;
    text-align: right;
}

.results-summary-footer .btn .fa {
    margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════
   COMPACT MODE (news composer side panel)
   ═══════════════════════════════════════════════════════════ */

.results-summary-compact {
    padding: 14px;
    border: 1px solid #dde5d0;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9f3 100%);
}

.results-summary-compact h4 {
    font-size: 16px;
    color: #0f4717;
    border-bottom: 1px solid #dde5d0;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.results-summary-compact h4 .fa {
    color: #8faa50;
    margin-right: 4px;
}

.results-flight-compact {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e6e0;
}

.results-flight-compact:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.results-flight-compact > strong {
    display: block;
    font-size: 13px;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
}

.rs-compact-list {
    margin: 0;
    padding: 0;
}

.rs-compact-list li {
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}

.rs-compact-list .rs-compact-place {
    font-weight: 600;
    color: #555;
}

.rs-compact-list .rs-compact-note {
    font-style: italic;
    font-size: 12px;
    color: #888;
}

.results-summary-footer-compact {
    margin-top: 8px;
    text-align: right;
    font-size: 12px;
}

.results-summary-footer-compact a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
}

.results-summary-footer-compact a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .results-summary {
        padding: 14px;
    }
    .results-summary-header h3 {
        font-size: 19px;
    }
    .results-flight-table tbody td,
    .results-ctp-table tbody td {
        font-size: 13px;
        padding: 6px 4px;
    }
    .results-flight-table .rs-place,
    .results-ctp-table .rs-place {
        width: auto;
        font-size: 12px;
    }
    .results-flight-table .rs-score {
        width: 50px;
    }
    .results-flight-table .rs-purse,
    .results-ctp-table .rs-purse {
        width: 70px;
    }
}
