/* Loaded exclusively by profile.php and reputation.php. */
.rep-section, .rep-board {
    --rep-positive: #176b38;
    --rep-positive-bg: #edf8f0;
    --rep-positive-border: #a7d5b5;
    --rep-negative: #af252b;
    --rep-negative-bg: #fff1f2;
    --rep-negative-border: #ecb0b5;
}
body:is(.dark-mode, .darkblue-mode) :is(.rep-section, .rep-board) {
    --rep-positive: #8ae4a5;
    --rep-positive-bg: #203b2a;
    --rep-positive-border: #427955;
    --rep-negative: #ffa3aa;
    --rep-negative-bg: #42272c;
    --rep-negative-border: #93515a;
}
.rep-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.rep-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rep-heading h2 { margin: 0; font-size: 17px; }
.rep-heading a, .rep-board a { color: var(--link-color, var(--accent-color)); }
.rep-heading a { font-size: 13px; }
.rep-counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.rep-counter { border: 1px solid; border-radius: 14px; padding: 16px; }
.rep-counter strong { display: block; font-size: clamp(22px, 4vw, 30px); line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rep-counter span { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; }
.rep-positive { color: var(--rep-positive); }
.rep-negative { color: var(--rep-negative); }
.rep-counter.rep-positive, .rep-vote.rep-positive { background: var(--rep-positive-bg); border-color: var(--rep-positive-border); }
.rep-counter.rep-negative, .rep-vote.rep-negative { background: var(--rep-negative-bg); border-color: var(--rep-negative-border); }
.rep-note { color: var(--text-secondary); font-size: 13px; line-height: 1.65; margin: 12px 0; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rep-vote { appearance: none; border: 1px solid; border-radius: 10px; padding: 11px 16px; min-height: 44px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rep-vote[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 2px; cursor: default; }
.rep-vote:hover:not(:disabled) { filter: brightness(.94); }
.rep-vote:focus-visible, .rep-board a:focus-visible, .rep-heading a:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 4px; }
.rep-layout { width: min(100% - 32px, 1000px); margin: 32px auto; flex: 1; }
.rep-board { padding: clamp(18px, 4vw, 36px); }
.rep-eyebrow { color: var(--text-secondary); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 8px; }
.rep-board h1 { margin: 0; font-size: clamp(24px, 4vw, 36px); }
.rep-table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border-color); border-radius: 14px; }
.rep-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.rep-table caption { text-align: left; padding: 12px 16px; background: var(--surface-alt, var(--input-bg)); color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.rep-table th, .rep-table td { padding: 16px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: middle; }
.rep-table th { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.rep-table tr:last-child td { border-bottom: 0; }
.rep-table tbody tr:hover { background: var(--row-hover, var(--input-bg)); }
.rep-table td:first-child { color: var(--text-secondary); width: 60px; font-variant-numeric: tabular-nums; }
.rep-table td:nth-child(n+3) { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-user { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-weight: 600; text-decoration: none; }
.rep-user:hover { text-decoration: underline; }
.rep-place { display: inline-flex; justify-content: center; align-items: center; min-width: 32px; min-height: 32px; padding: 5px; border-radius: 50%; background: var(--surface-alt, var(--input-bg)); }
.rep-first .rep-place { color: #795600; background: #fff0b7; font-weight: 700; }
body:is(.dark-mode, .darkblue-mode) .rep-first .rep-place { color: #ffe295; background: #51421f; }
.rep-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; font-size: 13px; }
.rep-pagination span { color: var(--text-secondary); }
.rep-empty { padding: 32px 16px; text-align: center; color: var(--text-secondary); }
@media (max-width: 520px) {
    .rep-layout { width: calc(100% - 20px); margin: 18px auto; }
    .rep-table th, .rep-table td { padding: 12px 9px; }
    .rep-table { font-size: 12px; table-layout: fixed; }
    .rep-table th:first-child { width: 44px; }
    .rep-table th:nth-child(n+3) { width: 24%; }
    .rep-counters { gap: 8px; }
    .rep-counter { padding: 12px; }
    .rep-vote { flex: 1; }
}
