/* TrackRestocks Stage 26: price and restock record on product pages. Mobile first.
   Store identity colours are the site's own (Target red, Walmart blue; validated on the dark panel),
   with a second encoding (circle vs square) so identity never rests on colour alone. */

/* check timing in the live box */
.s26-timing { margin: 14px 0 0; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.s26-timing > div { display: grid; gap: 2px; }
.s26-timing dt { font-size: 13px; font-weight: 700; color: var(--text); }
.s26-timing dd { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); font-variant-numeric: tabular-nums; }
.s26-k { display: inline-block; min-width: 78px; color: var(--dim); }
.s26-you dd { color: var(--muted); }
@media (min-width: 640px) {
  .s26-timing { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .s26-timing .s26-you { grid-column: 1 / -1; }
}

/* record section */
.s26-record h2 { letter-spacing: -.02em; }
.s26-grid { margin-top: 16px; display: grid; gap: 12px; }
@media (min-width: 760px) { .s26-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s26-panel { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); padding: 16px 18px; min-width: 0; }
.s26-panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--text); }
.s26-stats { margin: 0; display: grid; gap: 10px; }
.s26-stats > div { display: grid; grid-template-columns: 108px 1fr; gap: 10px; align-items: baseline; }
.s26-stats dt { font-size: 13px; color: var(--dim); }
.s26-stats dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); font-variant-numeric: tabular-nums; }
.s26-stats dd b { color: var(--text); font-size: 15.5px; font-weight: 750; }
.s26-empty { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.s26-foot { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); }

/* 30-day chart */
.s26-chart-wrap { margin-top: 12px; }
.s26-chart { display: block; width: 100%; max-width: 640px; height: auto; overflow: visible; }
.s26-chart .s26-gl { stroke: var(--line-2); stroke-width: 1; }
.s26-ax { fill: var(--dim); font-size: 13px; font-family: inherit; font-variant-numeric: tabular-nums; }
.s26-msrp { stroke: #A1A1AA; stroke-width: 1.5; stroke-dasharray: 5 5; }
.s26-msrp-t { fill: var(--muted); font-size: 12.5px; font-weight: 600; font-family: inherit; }
.s26-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.s26-dot { stroke: var(--panel); stroke-width: 2; }
.s26-line.s26-target { stroke: #EF4444; } .s26-dot.s26-target { fill: #EF4444; }
.s26-line.s26-walmart { stroke: #3B82F6; } .s26-dot.s26-walmart { fill: #3B82F6; }
.s26-line.s26-bestbuy { stroke: #FACC15; } .s26-dot.s26-bestbuy { fill: #FACC15; }
.s26-line.s26-amazon_us { stroke: #F59E0B; } .s26-dot.s26-amazon_us { fill: #F59E0B; }
.s26-dot:hover { stroke: var(--text); }
.s26-legend { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text); }
.s26-key::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; vertical-align: 0; background: var(--dim); }
.s26-key.is-sq::before { border-radius: 2px; }
.s26-key.s26-target::before { background: #EF4444; } .s26-key.s26-walmart::before { background: #3B82F6; }
.s26-key.s26-bestbuy::before { background: #FACC15; } .s26-key.s26-amazon_us::before { background: #F59E0B; }
.s26-table { margin-top: 10px; }
.s26-table summary { cursor: pointer; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.s26-table .tr-table-wrap { margin-top: 8px; max-height: 320px; overflow: auto; }
@media (forced-colors: active) { .s26-line, .s26-dot { stroke: CanvasText; } }

/* long status sentences wrap on phones (the "No reading yet" line overflowed at 390) */
.s24-live .s16-status { white-space: normal; max-width: 100%; }

/* small multiples: one chart per store, same scale */
.s26-multiples { display: grid; gap: 14px; }
@media (min-width: 900px) { .s26-multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.s26-fig { margin: 0; min-width: 0; }
.s26-fig figcaption { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.s26-chart { max-width: 500px; }
.s26-ax { font-size: 11px; }
.s26-msrp-t { font-size: 10.5px; }
@media (max-width: 600px) { .s26-ax { font-size: 13px; } .s26-msrp-t { font-size: 12px; } }
