/* The Overview tab of a profile (pages/players/tabs/overview.py). Three blocks: the level by date runs the full width; what the player is on and the
   records sit side by side from 760 px. Labels are text-3 on the left, values are tabular numbers on the right (the dl.facts grammar). */

.ov { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.ov-block { min-width: 0; padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ov-block h3 { margin: 0 0 var(--sp-2); font: 600 15px/1.3 var(--sans); color: var(--text); }
.ov-chart, .ov-discord { grid-column: 1 / -1; }
.ov-line { margin: var(--sp-2) 0 0; font: 400 14px/1.5 var(--sans); color: var(--text-3); }

.ov-rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.ov-rows > div { display: contents; }
.ov-rows dt, .ov-rows dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--border); }
.ov-rows > div:last-child dt, .ov-rows > div:last-child dd { border-bottom: 1px solid var(--border); }
.ov-rows dt { font: 500 13px/1.5 var(--sans); color: var(--text-3); min-width: 0; overflow-wrap: anywhere; }
.ov-rows dd { font: 500 14px/1.5 var(--sans); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-sub { display: block; font: 400 14px/1.4 var(--sans); color: var(--text-2); overflow-wrap: anywhere; }

/* held bounties drawn as their scroll cards in game, side by side as room allows */
.ov-on--cards { grid-column: 1 / -1; }
.ov-cards { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-start; margin-top: var(--sp-3); }
.ov-card { min-width: 0; max-width: 100%; }
.ov-card .gc { margin: 0; }
.ov-held + .ov-held { margin-top: var(--sp-4); }
.ov-held > div:first-child dt { font-weight: 600; color: var(--text); }
.ov-held > div:first-child dd { color: var(--text-2); font-weight: 500; }

.ov-r { font-weight: 600; }
.ov-r-common { color: var(--rarity-common); }
.ov-r-uncommon { color: var(--rarity-uncommon); }
.ov-r-rare { color: var(--rarity-rare); }
.ov-r-radiant { color: var(--rarity-radiant); }
.ov-r-legendary { color: var(--rarity-legendary); }

@media (min-width: 760px) {
  .ov { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-4); }
}
.ov-rows > div:last-child dt, .ov-rows > div:last-child dd { border-bottom: 0; }
.ov-rows > div:first-child dt, .ov-rows > div:first-child dd { border-top: 0; }

/* the level chart: a date axis, level-up dots, 220 px at most; the table it links to is for screen readers only */
.ov-curve { margin: var(--sp-2) 0 0; max-height: 220px; }
.ov-curve svg { display: block; width: 100%; height: auto; max-height: 220px; }
.ov-grid { stroke: var(--border); stroke-width: 1; }
.ov-area { fill: var(--ember); opacity: .12; pointer-events: none; }   /* so a change mark under it still takes the hover */
.ov-path { stroke: var(--ember); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ov-dot { fill: var(--bg); stroke: var(--ember); stroke-width: 2.5; }
.ov-val { fill: var(--text); font: 600 12px var(--sans); font-variant-numeric: tabular-nums; }
.ov-tick { fill: var(--text-3); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
/* a game change that moved levels (the 1% level curve, 5 Nov 2026): a dashed upright line, its name on top, the note on hover */
.ov-mark { cursor: help; }
.ov-mark-line { stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ov-mark-hit { fill: transparent; }
.ov-mark-label { fill: var(--text-3); font: 600 11px var(--sans); }
.ov-mark:hover .ov-mark-line { stroke: var(--text); }
.ov-mark:hover .ov-mark-label { fill: var(--text); }

/* The label takes the width its words need (two thirds of the card at most) and the value wraps beside it (28 Nov 2026): on a phone a long value used to
   keep one line and squeeze its label down to a letter a line. */
.ov-rows { grid-template-columns: fit-content(68%) minmax(0, 1fr); }
.ov-rows dt { overflow-wrap: normal; padding-right: var(--sp-4); }   /* padding, not a gap: the row's rule runs unbroken */
.ov-rows dd { white-space: normal; overflow-wrap: break-word; text-wrap: balance; }
@media (max-width: 760px) { .ov-block { padding: var(--sp-4); } }
