/* The history is a journal within Katomu, with dates preserved on every width. */
* { box-sizing: border-box; }
.reputation-page .page-header { display: grid; }
.reputation-page h1, .reputation-page p { margin: 0; }
.reputation-page :is(.page-header, #rh-hero, #rh-section, .state-box) { width: 100%; max-width: 920px; align-self: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 20px 0; border-block: 1px solid var(--border); }
.stat-pill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font-weight: 700; }
.stat-pill-label { color: var(--text-2); font-size: .875rem; font-weight: 500; }
#rh-rep-val { color: var(--brand); font-size: 1.5rem; }
.rank-badge { color: var(--text); }
.state-box { display: none; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 0; border-block: 1px solid var(--border); }
.state-box.is-active { display: flex; }
.state-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--brand); }
.state-title { font-size: 1.125rem; font-weight: 700; }
.state-desc { max-width: 56ch; color: var(--text-2); }
.state-box a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-md); background: var(--brand-solid); color: var(--on-accent); text-decoration: none; font-weight: 700; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border-2); border-top-color: var(--brand); border-radius: 50%; animation: history-spin .8s linear infinite; }
@keyframes history-spin { to { transform: rotate(360deg); } }
.section-heading { padding-bottom: 12px; color: var(--text-2); font-size: .875rem; font-weight: 650; border-bottom: 1px solid var(--border); }
#rh-list { list-style: none; padding: 0; margin: 0; }
.rh-item { display: grid; grid-template-columns: minmax(3rem, auto) minmax(0, 1fr) auto; align-items: start; gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.rh-delta { font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rh-delta.is-positive { color: var(--success); }
.rh-delta.is-negative { color: var(--danger); }
.rh-delta.is-zero { color: var(--text-3); }
.rh-info { min-width: 0; }
.rh-reason { font-size: .9375rem; font-weight: 650; overflow-wrap: anywhere; }
.rh-source, .rh-date { font-size: .8125rem; color: var(--text-3); overflow-wrap: anywhere; }
.rh-date { text-align: right; font-variant-numeric: tabular-nums; }
.rh-empty { display: none; padding: 28px 0; color: var(--text-2); }
@media (max-width: 700px) {
    .rh-item { grid-template-columns: minmax(3rem, auto) minmax(0, 1fr); gap: 4px 12px; }
    .rh-date { grid-column: 2; text-align: left; }
}
