/* The Auction page, on site.css's colours and type: one line per item in five columns after its picture, which fold
   under the name on a narrow screen; an item's auctions open in a popup with a chart and a table of every record,
   each record's sources behind a question mark as on the Items page. */
.a-intro { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.i-search { flex: 1 1 220px; }
.i-search .ftext { flex: 1 1 auto; min-width: 0; min-height: 32px; padding: 0 8px; font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--control); border-radius: 0; }
.shown { margin: 12px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.item[hidden], html:not(.js) .shown { display: none; }
.items { list-style: none; margin: 0; padding: 0; }
.i-cols, .item { display: grid; grid-template-columns: 36px minmax(0, 1fr) 9rem 8rem 12rem 10rem; gap: 0 12px; align-items: center; }
.i-cols { margin-top: 16px; padding: 6px 0 4px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: bold; color: var(--fg); }
.item { padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; content-visibility: auto; contain-intrinsic-size: auto 45px; }
.item:target { background: var(--line); }
.i-name-cell { min-width: 0; overflow-wrap: anywhere; }
.i-icon { width: 36px; height: 36px; }
.i-icon img { display: block; width: 36px; height: 36px; object-fit: contain; }
.i-type, .a-span, .a-unsold, .a-mu { color: var(--muted); }
.a-count, .a-span, .a-last { font-variant-numeric: tabular-nums; }
.a-unsold, .a-mu { font-size: 13px; }
/* Without scripts each row links to the item and its data file; with them a click opens the popup instead. */
.a-links { grid-column: 2 / -1; font-size: 13px; }
.a-links a + a { margin-left: 12px; }
html.js .a-links { display: none; }
.item.has-more { cursor: pointer; }
.item.has-more:hover .i-name { text-decoration: underline dotted; }
.i-pop { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 0; }
.i-pop::backdrop { background: rgba(0, 0, 0, .6); }
.i-pop-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.i-pop-title { flex: 1; min-width: 0; align-self: center; font-size: 20px; font-weight: bold; overflow-wrap: anywhere; }
.i-pop-close { flex: none; width: 32px; height: 32px; padding: 0; font: inherit; font-size: 20px; line-height: 1; color: var(--fg); background: transparent; border: 1px solid var(--control); border-radius: 0; cursor: pointer; }
.i-pop-body { padding: 8px 16px 12px; font-size: 15px; overflow-wrap: anywhere; }
.a-wait { color: var(--muted); font-style: italic; }
.i-stats { border-collapse: collapse; margin: 2px 0 4px; }
.i-stats th, .i-stats td { padding: 2px 20px 2px 0; text-align: left; vertical-align: top; }
.i-stats th { font-weight: normal; white-space: nowrap; color: var(--muted); }
.a-links-pop { margin: 4px 0 10px; font-size: 14px; }
.a-chart { margin: 0 0 12px; }
.a-chart svg { display: block; width: 100%; height: auto; background: var(--panel); border: 1px solid var(--line); }
.a-chart figcaption { margin-top: 4px; font-size: 13px; color: var(--muted); }
.a-chart .grid { stroke: var(--line); stroke-width: 1; }
.a-chart .tt { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.a-chart .vu { fill: var(--line); opacity: .7; }
.a-chart .lbl { fill: var(--muted); font-size: 11px; font-family: inherit; }
.a-chart .dot { fill: var(--link); opacity: .55; }
.a-chart .dot.grey { fill: none; stroke: var(--muted); stroke-width: 1; }
.a-chart .median { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.a-tabs { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.a-tabs button { font: inherit; font-size: 14px; min-height: 30px; padding: 0 10px; color: var(--fg); background: transparent; border: 1px solid var(--control); border-radius: 0; cursor: pointer; }
.a-tabs button[aria-selected="true"] { background: var(--line); border-color: var(--fg); }
.a-at { font-size: 13px; color: var(--muted); }
.a-scroll { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.a-table th, .a-table td { padding: 3px 12px 3px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.a-table thead th { font-size: 13px; font-weight: bold; }
.a-table .n { text-align: right; }
.a-table tr.grey td { color: var(--muted); }
.a-table td.q { width: 18px; padding-right: 0; }
.a-more { margin: 8px 0 0; font: inherit; font-size: 14px; padding: 0 2px; border: 0; background: none; color: var(--link); text-decoration: underline; cursor: pointer; }
.a-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
/* A record's sources sit behind a question mark: a tip below the mark while the pointer rests on it or it has the
   focus, placed by the page's script to stay inside the window. */
.src { position: relative; display: inline-block; width: 18px; height: 18px; font-size: 12px; line-height: 16px; text-align: center; vertical-align: 1px; color: var(--muted); border: 1px solid var(--control); cursor: help; }
.src:hover, .src:focus { color: var(--fg); border-color: var(--fg); outline: none; }
.src > span { position: fixed; left: 0; top: 100%; z-index: 3; width: max-content; max-width: min(440px, calc(100vw - 16px)); padding: 7px 10px; font-size: 14px; line-height: 1.45; text-align: left; white-space: normal; color: var(--fg); background: var(--panel); border: 1px solid var(--line); visibility: hidden; }
.src:hover > span, .src:focus-within > span { visibility: visible; }
.src .e { display: block; }
@media (max-width: 640px) {
  .i-cols { display: none; }
  .item { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .i-icon { grid-row: 1 / span 3; align-self: start; }
  .i-name-cell { grid-column: 2 / 4; }
  .i-type { grid-column: 2; }
  .a-count { grid-column: 3; grid-row: 2; text-align: right; }
  .a-span { grid-column: 2; font-size: 13px; }
  .a-last { grid-column: 3; text-align: right; font-size: 13px; }
}
/* The price sites' readings: a line of steps per site, in four colours that read on both themes, keyed in the
   caption. */
.a-chart .reading { fill: none; stroke-width: 1.5; stroke-linejoin: round; opacity: .9; }
.a-chart .r0, .a-chart figcaption .key.r0 { stroke: #e0a040; background: #e0a040; }
.a-chart .r1, .a-chart figcaption .key.r1 { stroke: #50c090; background: #50c090; }
.a-chart .r2, .a-chart figcaption .key.r2 { stroke: #d070c0; background: #d070c0; }
.a-chart .r3, .a-chart figcaption .key.r3 { stroke: #c0c040; background: #c0c040; }
.a-chart figcaption .key { display: inline-block; width: 14px; height: 3px; margin: 0 4px 3px 6px; vertical-align: middle; }
/* PE Auction's own charts, folded under the table. */
.a-pea-charts { margin: 12px 0 0; }
.a-pea-charts summary { cursor: pointer; font-size: 14px; }
.a-pea-charts figure { margin: 8px 0 0; }
.a-pea-charts img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.a-pea-charts figcaption { font-size: 13px; color: var(--muted); }
/* The auction houses players ran, below the list: each a paragraph and a table folded in a details element. */
.a-houses { margin-top: 36px; }
.a-houses h2 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }
.a-houses p { margin: 10px 0 6px; font-size: 14px; color: var(--muted); }
.a-houses details { margin: 0 0 8px; }
.a-houses summary { cursor: pointer; font-size: 14px; }
.a-house td.t { white-space: normal; min-width: 14rem; }
