/* "What a gram goes for" — the price shelf on the homepage. Scoped to .shelf-block. */
.shelf-block { --sh-dot: #2a78d6; --sh-hit: #eb6834; --sh-band: #d9e3f2; --sh-bg: var(--pale); }
.shelf-block .section-heading h2 { font: 500 clamp(34px, 4.2vw, 50px)/1.04 var(--serif); letter-spacing: -1.2px; }
.shelf-block .sh-deck { max-width: 62ch; color: #424b56; font-size: 14px; line-height: 1.65; }
.shelf-block .sh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid #c9d2db; margin: 22px 0 16px; }
.shelf-block .sh-stat { padding: 13px 18px 12px 0; }
.shelf-block .sh-stat + .sh-stat { border-left: 1px solid #c9d2db; padding-left: 18px; }
.shelf-block .sh-stat span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-weight: 650; }
.shelf-block .sh-stat strong { display: block; font: 500 32px/1.15 var(--serif); letter-spacing: -.8px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.shelf-block .sh-stat small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.shelf-block .sh-filters { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding: 4px 0 12px; border-bottom: 1px solid #c9d2db; }
.shelf-block .sh-chips { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.shelf-block .sh-chips > span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.shelf-block .sh-chips button { border: 1px solid transparent; font-size: 12px; min-height: 40px; padding: 6px 11px; }
.shelf-block .sh-chips button[aria-pressed=true] { border-color: #8c99a7; color: var(--blue); background: #f8fafc; font-weight: 650; }
.shelf-block .sh-chips button:hover { background: #e0e6ed; }
.shelf-block .sh-onshelf { font-size: 12px; display: flex; gap: 8px; align-items: center; color: var(--muted); min-height: 40px; }
.shelf-block .sh-find { display: flex; align-items: center; gap: 8px; margin-left: auto; border-bottom: 1px solid var(--ink); min-width: 240px; }
.shelf-block .sh-find input { border: 0; background: transparent; min-height: 40px; font-size: 13px; width: 100%; outline-offset: 2px; }
.shelf-block .sh-find input::placeholder { color: #56616d; opacity: 1; }
.shelf-block .sh-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 11px; color: var(--muted); margin: 10px 0 0; align-items: center; }
.shelf-block .sh-legend i { display: inline-block; vertical-align: middle; margin-right: 7px; }
.shelf-block .sh-l-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sh-dot); }
.shelf-block .sh-l-hit { width: 9px; height: 9px; border-radius: 50%; background: var(--sh-hit); }
.shelf-block .sh-l-med { width: 2px; height: 12px; background: var(--ink); }
.shelf-block .sh-l-band { width: 18px; height: 10px; background: var(--sh-band); }
.shelf-block .sh-chart { position: relative; margin-top: 6px; }
.shelf-block .sh-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.shelf-block .sh-row-label { font-size: 12px; fill: var(--ink); }
.shelf-block .sh-row-label.sh-other { fill: var(--muted); font-style: italic; }
.shelf-block .sh-axis text { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.shelf-block .sh-axis line { stroke: #d6dde4; }
.shelf-block .sh-rule { stroke: #e1e7ec; }
.shelf-block .sh-band { fill: var(--sh-band); }
.shelf-block .sh-band-label { font-size: 10px; fill: #3f5f8f; letter-spacing: .04em; }
.shelf-block .sh-dot { fill: var(--sh-dot); fill-opacity: .85; stroke: var(--sh-bg); stroke-width: 1.5; }
.shelf-block .sh-dot.sh-dim { fill: #b9c3cf; }
.shelf-block .sh-dot.sh-hit { fill: var(--sh-hit); fill-opacity: 1; }
.shelf-block .sh-dot.sh-active { stroke: var(--ink); stroke-width: 2; }
.shelf-block .sh-median { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.shelf-block .sh-tip { position: absolute; pointer-events: none; background: var(--ink); color: #f6f8fd; font-size: 12px; line-height: 1.45; padding: 9px 11px; max-width: 260px; z-index: 5; transform: translate(-50%, calc(-100% - 12px)); }
.shelf-block .sh-tip strong { display: block; font-size: 13px; }
.shelf-block .sh-tip span { color: #c6cfdb; }
.shelf-block .sh-lower { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; margin-top: 40px; }
.shelf-block .sh-lower h3 { font-size: 21px; letter-spacing: -.4px; font-weight: 550; margin: 8px 0 6px; }
.shelf-block .sh-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.shelf-block .sh-changes { padding: 0; margin: 0; border-top: 1px solid #c9d2db; }
.shelf-block .sh-changes li { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid #c9d2db; font-size: 13px; }
.shelf-block .sh-changes small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.shelf-block .sh-changes b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.shelf-block .sh-down { color: #285346; }
.shelf-block .sh-up { color: #743a2a; }
.shelf-block .sh-table-scroll { overflow: auto; max-height: 460px; border-top: 1px solid #c9d2db; }
.shelf-block .sh-table { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
.shelf-block .sh-table th { position: sticky; top: 0; background: var(--sh-bg); text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0; border-bottom: 1px solid #9eacb8; white-space: nowrap; }
.shelf-block .sh-table th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: 9px 10px 9px 0; min-height: 36px; width: 100%; text-align: inherit; }
.shelf-block .sh-table th[aria-sort] { color: var(--blue); }
.shelf-block .sh-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid #d6dde4; vertical-align: top; }
.shelf-block .sh-table .sh-num { text-align: right; }
.shelf-block .sh-table tr.sh-hit td:first-child { box-shadow: inset 3px 0 0 var(--sh-hit); padding-left: 8px; }
.shelf-block .sh-method { margin-top: 26px; }
@media (max-width: 760px) {
  .shelf-block .sh-stats { grid-template-columns: 1fr 1fr; }
  .shelf-block .sh-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .shelf-block .sh-stat:nth-child(n+3) { border-top: 1px solid #c9d2db; }
  .shelf-block .sh-stat strong { font-size: 27px; }
  .shelf-block .sh-find { margin-left: 0; width: 100%; }
  .shelf-block .sh-lower { grid-template-columns: 1fr; gap: 34px; }
  .shelf-block .sh-deck { font-size: 15px; }
}
