/* styles/pages/rankings.css: the public ledger (src/pages/rankings.jsx). The race across the sky as the header,
   the census of totals, a sticky row of controls, then the podium, the field, the labs, and the probes. */
.rkh { position: relative; isolation: isolate; padding: clamp(118px, 11vw, 150px) 0 calc(clamp(8px, 1vw, 16px) + 120px); margin-bottom: -24px; overflow: clip; }
.rkh::before { content: ''; position: absolute; z-index: -2; inset: 0; background: var(--vellum);
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 118px) no-repeat, url(../../images/edge-seam.png) 0 100% / 576px 120px repeat-x;
  mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 118px) no-repeat, url(../../images/edge-seam.png) 0 100% / 576px 120px repeat-x; }
/* the print runs the width of the header behind the title; the race is on its right, the sky on its left */
.rkh__art { position: absolute; z-index: -1; top: 40px; right: max(-3vw, calc((100vw - 1440px) / 2 - 40px)); width: min(880px, 62vw); }
.rkh__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; padding-top: clamp(8px, 3vw, 48px); min-height: clamp(220px, 24vw, 340px); }
.rkh__copy .phead__h { max-width: 9ch; }
.rkh__copy .lede { max-width: 38ch; }
.census--rk { position: relative; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 64px); }
/* a scrim, not a spotlight: the vellum rises behind the figures where the print runs under them */
.census--rk::before { content: ""; position: absolute; z-index: -1; inset: -28px -24px -12px; background: linear-gradient(180deg, rgba(246,238,227,0), rgba(246,238,227,.92) 34%); }
.census__sub { margin: 0 !important; font: 400 12.5px/1.3 var(--sans) !important; letter-spacing: 0 !important; color: var(--ink-3) !important; }

/* controls stick under the nav */
.rk__bar { position: sticky; z-index: 20; top: 66px; padding: 12px 0; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
/* fills the strip above the bar, behind the floating nav, so rows never show through it */
.rk__bar::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: -66px; height: 66px; background: var(--paper); }
.rk__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rk { padding-bottom: clamp(96px, 10vw, 140px); display: grid; }
.rk__sec { padding-top: clamp(52px, 5.5vw, 80px); display: grid; gap: 20px; min-width: 0; }
.rk__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.rk__h { margin: 0; font: 300 clamp(30px, 3vw, 42px)/1.05 var(--serif); letter-spacing: -0.02em; }
.rk__h3 { margin: 0 0 6px; display: grid; gap: 3px; font: 400 21px/1.15 var(--serif); color: var(--ink); }
.rk__h3 small { font: 400 12.5px/1.3 var(--sans); color: var(--ink-3); }
.rk__cap { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.rk__total { margin: 0; font-size: 14px; color: var(--ink-2); }
.rk__total b { font: 300 26px/1 var(--serif); color: var(--ink); margin-right: 4px; }
.rk__note { margin: 0; max-width: 80ch; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.rk__more { justify-self: start; }
.delta { font-size: 12.5px; color: var(--umber); white-space: nowrap; }
.delta--down { color: var(--ink-3); }

/* the podium: three places, the first raised; serif numerals like a medal's inscription */
.podium { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 14px; }
.podium__place { display: grid; gap: 14px; padding: 22px 22px 18px; border-radius: var(--r-md); background: var(--linen); box-shadow: inset 0 0 0 1px var(--line), 0 22px 30px -26px rgba(74,48,26,.55); min-width: 0; }
.podium__place--1 { order: 2; padding-top: 30px; background: var(--dark); color: var(--cream); box-shadow: 0 30px 40px -28px rgba(23,17,13,.7); }
.podium__place--2 { order: 1; } .podium__place--3 { order: 3; }
.podium__n { font: 300 54px/0.9 var(--serif); letter-spacing: 0.02em; color: var(--umber); }
.podium__place--1 .podium__n { font-size: 72px; color: var(--gold); }
.podium__who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.podium__who span { display: grid; gap: 3px; min-width: 0; }
.podium__who a { font: 400 21px/1.15 var(--serif); color: inherit; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-wrap: balance; }
.podium__who small { font-size: 12.5px; color: var(--ink-3); }
.podium__place--1 .podium__who small, .podium__place--1 .podium__v span { color: rgba(248,243,234,.62); }
.podium__v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.podium__v b { font: 300 36px/1 var(--serif); letter-spacing: -0.02em; }
.podium__v span { font-size: 13px; color: var(--ink-3); }
.podium__place--1 .delta { color: var(--gold); }
.podium__place--1 .spark path { stroke: var(--gold); }
.podium__place--1 .labmark { background: rgba(248,243,234,.95); }
@media (hover: hover) and (pointer: fine) { .podium__place--1.hit:hover { background: #3a2b22; } }
html[data-kbd] .podium__place--1.hit:focus-within { background: #3a2b22; }

/* the field */
.board { margin: 0; padding: 0; list-style: none; }
.board__row { display: grid; grid-template-columns: 48px 30px minmax(0, 1.3fr) 110px minmax(0, 1fr) 96px 60px; gap: 16px; align-items: center; padding: 10px 6px 10px 0; border-bottom: 1px solid var(--line); }
.board__rank { font: 300 22px/1 var(--serif); color: var(--ink-2); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.board__name { display: grid; gap: 2px; min-width: 0; }
.board__name a { font: 500 15px/1.25 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__name small { font-size: 12.5px; color: var(--ink-3); }
.board__bar { height: 6px; border-radius: 3px; background: var(--paper-lo); overflow: hidden; }
.board__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink-3); }
.board__v { display: grid; justify-items: end; gap: 2px; }
.board__v b { font-size: 15px; font-weight: 500; color: var(--ink); }
.board__v small { font-size: 12px; color: var(--ink-3); }
.board__d { text-align: right; }

/* labs: the share chart beside the ranked list */
.labs__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.labs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.labs li { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.labs__i { font-size: 12.5px; color: var(--ink-3); }
.labs__n { display: grid; gap: 2px; font-size: 15px; color: var(--ink); min-width: 0; }
.labs__n small { font-size: 12.5px; color: var(--ink-3); }
.labs b { text-align: right; font: 300 22px/1 var(--serif); }

/* movers and speed */
.movers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.speed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.movers, .speed ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.movers li, .speed li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.speed li { grid-template-columns: 18px 30px minmax(0, 1fr) auto; }
.movers a, .speed a { min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movers b { font-size: 14px; font-weight: 500; color: var(--umber); }
.movers__col--down .movers b { color: var(--ink-3); }
.speed__i { font-size: 12.5px; color: var(--ink-3); }
.speed__v { display: grid; justify-items: end; gap: 1px; }
.speed__v b { font-size: 14px; font-weight: 500; }
.speed__v small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

@media (max-width: 1100px) { .census--rk { grid-template-columns: repeat(3, minmax(0, 1fr)); } .census--rk > div:nth-child(4) { border-left: 0; padding-left: 0; } .census--rk > div:nth-child(n + 4) { border-top: 1px solid var(--line); } }
@media (max-width: 960px) {
  .rkh__art { position: relative; top: 0; right: auto; width: 100%; margin: -20px 0 4px; }
  .rkh__copy { min-height: 0; }
  .rk__bar { position: static; }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .podium__place--1, .podium__place--2, .podium__place--3 { order: 0; }
  .labs__grid, .movers__grid, .speed { grid-template-columns: minmax(0, 1fr); }
  .board__row { grid-template-columns: 34px 30px minmax(0, 1fr) 92px; }
  .board__bar, .board__d, .board__spark { display: none; }
}
@media (max-width: 640px) { .census--rk { grid-template-columns: repeat(2, minmax(0, 1fr)); } .census--rk > div:nth-child(odd) { border-left: 0; padding-left: 0; } .census--rk > div:nth-child(4) { border-left: 1px solid var(--line); padding-left: 22px; } .census--rk > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }
@media (pointer: coarse) { .movers li, .speed li { min-height: 44px; } }
.rk__ctl .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
