/* The ledger page (/ledger/). Written by make_ledger.py. Site tokens only (site.css :root); the one colour not in
   site.css is the brand --ok token's dark value from tokens.css (hits), used as is. No new colours or fonts. */
.lgpage { max-width: 1120px; margin: 0 auto; padding: 56px 28px 72px; --lg-ok: #6CCB5F; }
.lgtop { max-width: 760px; }
.lgtop h1 { font-size: clamp(34px, 5vw, 48px); margin: 12px 0 14px; }
.lgtop .sub { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
.lgbtns { display: flex; flex-wrap: wrap; gap: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.score { margin: 48px 0 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 28px 0 22px; }
.score .cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.score .cell b { display: block; font-weight: 800; font-size: clamp(24px, 3vw, 32px); color: var(--white); letter-spacing: -0.02em; line-height: 1.2; }
.score .cell span { color: var(--muted-2); font-size: 15px; }
.score .asof { margin: 20px 0 0; color: var(--muted-2); font-size: 14px; }
.m { font-family: var(--mono); font-size: 0.92em; }
.lgpage h2 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--white); }
.lgmethod { margin: 44px 0 0; max-width: 760px; }
.lgmethod p { margin: 0; color: var(--ink-2); font-size: 16px; }
.sessions { margin: 48px 0 0; }
.sessions .lgnote { margin: 0 0 14px; color: var(--muted-2); font-size: 14px; }
table.lg { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lg th, table.lg td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lg thead th { color: var(--faint); font-size: 13px; font-weight: 600; border-bottom-color: var(--line-2); white-space: nowrap; }
table.lg tbody th { font-weight: 600; color: var(--white); white-space: nowrap; }
table.lg td { color: var(--ink-2); }
table.lg td.m { white-space: nowrap; }
table.lg .ds { display: none; }
/* Hit and Miss: the same weight, each in its own colour; the word carries the meaning, the colour repeats it */
.r { font-weight: 600; }
.r.hit { color: var(--lg-ok); }
.r.miss { color: var(--warm); }
.r.push { color: var(--muted); }
td.posts a { margin-right: 12px; }
td.posts a:last-child { margin-right: 0; }
.none { color: var(--faint); }
tr.nocard td { color: var(--muted); }
details.more { margin: 18px 0 0; }
details.more > summary { cursor: pointer; color: var(--link); min-height: 44px; display: inline-flex; align-items: center; }
.gp { margin: 48px 0 0; color: var(--muted-2); font-size: 15px; }
@media (max-width: 600px) {
  .lgpage { padding: 40px 16px 56px; }
  .lgtop .sub { font-size: 17px; }
  .score .cells { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 860px) {
  .score .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  /* one block per session: the date, then each value with its result beside it, labels inline */
  table.lg thead { display: none; }
  table.lg, table.lg tbody, table.lg tr, table.lg th, table.lg td { display: block; width: 100%; }
  table.lg tr { padding: 14px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
  table.lg tbody th { grid-column: 1 / -1; border: 0; padding: 0 0 6px; font-size: 16px; order: 0; }
  table.lg .dl { display: none; } table.lg .ds { display: inline; }
  table.lg td { border: 0; padding: 2px 0; font-size: 15px; }
  table.lg td::before { content: attr(data-l) " "; color: var(--faint); font-size: 13px; font-family: var(--sans); }
  table.lg td:nth-child(2) { order: 1; } table.lg td:nth-child(5) { order: 2; }
  table.lg td:nth-child(3) { order: 3; } table.lg td:nth-child(6) { order: 4; }
  table.lg td:nth-child(4) { order: 5; } table.lg td:nth-child(7) { order: 6; }
  table.lg td:nth-child(8) { order: 7; grid-column: 1 / -1; }
  table.lg td:nth-child(5)::before, table.lg td:nth-child(6)::before { content: ""; }
}
