.orac-page { padding-top: 3.5rem; padding-bottom: 1rem; }
.page-eyebrow { font: 500 .64rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; color: var(--site-muted); margin-bottom: .9rem; }
.orac-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.orac-page h1 { font-size: clamp(2.3rem,5vw,3.5rem); font-weight: 650; letter-spacing: -.065em; margin-bottom: .6rem; }
.orac-heading h1 > span { color: #789373; font-weight: 450; margin-left: .1em; }
.orac-subtitle { color: var(--site-muted); font-size: .93rem; margin: 0; line-height: 1.8; }
.orac-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.orac-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .9rem 1.1rem; background: #eaf0e5; border: 1px solid #dce5d6; border-radius: .6rem; margin-bottom: 1rem; color: #596952; font-size: .75rem; line-height: 1.7; }
.orac-info strong { font-weight: 550; color: #354f3b; font-variant-numeric: tabular-nums; }
.orac-info a { color: #395c40; }
.info-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #749468; margin-right: .55rem; vertical-align: middle; }
.orac-baseline { font-size: .8rem; color: var(--site-muted); line-height: 1.8; }
.orac-page > .small { font-size: .73rem; line-height: 1.8; max-width: 950px; }
.orac-tabs { margin-top: 2rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--site-border); gap: .6rem; }
.orac-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #75806f; padding: .8rem 1rem; font-size: .84rem; font-weight: 550; }
.orac-tabs .nav-link:hover { color: var(--site-accent); border-color: #becdb4; }
.orac-tabs .nav-link.active { color: #284f38; border-color: #3b6946; background: transparent; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.leaderboard-grid > li { display: flex; align-items: center; gap: .6rem; min-width: 0; min-height: 58px; padding: .8rem .9rem; background: #fff; border: 1px solid var(--site-border); border-radius: .65rem; font-size: .84rem; transition: border-color .15s, background .15s; }
.leaderboard-grid > li:hover { background: #fbfcf8; border-color: #b4c3aa; }
.leaderboard-grid .place { flex: 0 0 1.45rem; color: #8a9583; font: 400 .7rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
.leaderboard-grid li:first-child .place { color: #567142; font-weight: 750; }
.leaderboard-grid .username-field { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #34432f; font-weight: 550; }
.leaderboard-grid .solvecount { display: flex; align-items: center; gap: .45rem; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.leaderboard-grid .solvecount small { min-width: 2rem; padding: .2rem .3rem; background: #f0f3ec; border-radius: .3rem; font: 500 .65rem/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; text-align: center; }
.orac-history > p:first-child { font-size: .8rem; margin-bottom: 2rem; }
.orac-history > .text-secondary { font-size: .9rem; line-height: 1.8; max-width: 800px; }
.history-picker { padding: 1.1rem 1.3rem; border: 1px solid var(--site-border); border-radius: .8rem; background: #eef2e9; }
.history-picker label { font-size: .83rem; font-weight: 600; }
.history-picker .form-select { min-width: 170px; font-size: .86rem; }
.history-board { padding: 1.5rem; border: 1px solid var(--site-border); border-radius: .9rem; background: #fff; }
.history-board h2 { font-size: 1.15rem; font-weight: 650; margin-bottom: 1rem; }
.history-board .table { --bs-table-striped-bg: #f7f9f4; --bs-table-border-color: #e9ede3; font-size: .85rem; margin-bottom: 0; }
.history-board th { color: var(--site-muted); font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.history-board :is(td,th) { padding: .8rem .7rem; }
.history-board td { overflow-wrap: anywhere; }
.history-board tr > :first-child { width: 15%; color: #7b8974; font-variant-numeric: tabular-nums; }
.history-board tr > :nth-child(3), .history-board tr > :nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .leaderboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
    .orac-page { padding: 2rem 1.25rem 0; }
    .orac-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; margin-bottom: 1.5rem; }
    .orac-actions .btn { font-size: .78rem; padding: .6rem .8rem; }
    .orac-info { padding: .8rem .9rem; font-size: .7rem; }
    .orac-tabs { gap: 0; justify-content: space-between; }
    .orac-tabs .nav-link { padding: .7rem .8rem; font-size: .78rem; }
    .leaderboard-grid { grid-template-columns: 1fr; gap: .5rem; }
    .leaderboard-grid > li { min-height: 53px; padding: .75rem .9rem; }
    .history-board { padding: 1rem .7rem; }
    .history-board h2 { padding-left: .5rem; }
    .history-board :is(td,th) { padding: .75rem .45rem; }
    .history-board .table { font-size: .76rem; }
    .history-board th { font-size: .57rem; letter-spacing: 0; }
    .history-picker { padding: 1rem; }
}

.history-capture { color: var(--site-muted); font-size: .8rem; line-height: 1.8; }
.history-capture a { margin-left: .4rem; }
.history-notes { padding: .9rem 1.1rem; margin-bottom: 1.5rem; border: 1px solid var(--site-border); border-radius: .6rem; background: #eef2e9; }
.history-notes summary { color: #426146; font-size: .8rem; font-weight: 550; }
.history-notes p { margin: .9rem 0 0; font-size: .76rem; line-height: 1.8; }
