/* ============================================================================
   /how-we-measure/christmas/ — The Christmas Basket (tpl-how-we-measure-christmas.php)
   Loaded only on that template, after css/how-we-measure.css, which it reuses
   for the page voice (hero, sections, tabs, glance tables, licence). Only the
   few things the monthly page has no rule for live here, scoped under .wl-xm,
   so nothing in this file can reach another page.
   ========================================================================== */

/* Run switcher (two published dates) — links, no script needed */
.wl-xm .xm-runs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 0; font-family: var(--mono); font-size: 13px; }
.wl-xm .xm-runs-label { color: var(--muted); margin-right: 4px; }
.wl-xm .xm-run { line-height: 1; padding: 9px 13px; border-radius: 99px; border: 1px solid var(--rule-dark); background: var(--card); color: var(--ink); text-decoration: none; }
.wl-xm a.xm-run:hover, .wl-xm a.xm-run:focus-visible { border-color: var(--green); }
.wl-xm .xm-run.is-current { background: var(--green); border-color: var(--green); color: #fff; }
.wl-xm .xm-next { margin-top: 22px; }

/* Price tables: items down the side, one column per shop */
.wl-xm .xm-prices td, .wl-xm .xm-changes td { font-size: 14px; }
.wl-xm .xm-prices th, .wl-xm .xm-changes th { white-space: nowrap; }
.wl-xm .xm-prices .c-item, .wl-xm .xm-changes .c-item { width: 28%; }
.wl-xm .xm-prices td small, .wl-xm .xm-changes td small { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.wl-xm .xm-item small { font-family: var(--mono); }
.wl-xm .xm-price { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.wl-xm .xm-prices tr.cat td { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); padding-top: 20px; border-bottom: 1px solid var(--rule-dark); }
.wl-xm .xm-prices tr.xm-out td { background: #F6F6F2; }
.wl-xm .xm-prices tfoot td { font-family: var(--mono); font-weight: 600; border-top: 1px solid var(--rule-dark); border-bottom: none; white-space: nowrap; }
.wl-xm .xm-prices tfoot td.win { color: var(--green); }
.wl-xm .xm-changes tr.xm-first td { border-top: 1px solid var(--rule-dark); }
.wl-xm .xm-changes td:nth-child(n+2) { white-space: normal; }

/* Markers: "special" and "converted" — words, not colours alone */
.wl-xm .xm-flag, .wl-xm .xm-conv {
	display: inline-block; font-family: var(--mono); font-size: 10.5px; line-height: 1.5; padding: 0 6px; border-radius: 99px;
	letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap;
}
.wl-xm .xm-flag { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }
.wl-xm .xm-conv { background: var(--card); color: var(--muted); border: 1px solid var(--rule-dark); }

.wl-xm .hwm-glance td.xm-cheap { white-space: normal; min-width: 16ch; }   /* a tie names every shop */
.wl-xm .xm-equal { margin: 18px 0 0; max-width: 70ch; }
.wl-xm .xm-equal b { font-weight: 600; }
.wl-xm .hwm-limits + .hwm-table-wrap { margin-top: 18px; }
.wl-xm .hwm-stores { margin-top: 18px; }

/* CSV downloads, one line per run */
.wl-xm .xm-csvs { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 13.5px; }
.wl-xm .xm-csvs li { margin: 10px 0; }
.wl-xm .xm-csvs a { margin-right: 10px; white-space: nowrap; }

@media (max-width: 560px) {
	.wl-xm .xm-prices .c-item, .wl-xm .xm-changes .c-item { width: auto; }
	.wl-xm .xm-prices td, .wl-xm .xm-changes td { font-size: 13px; }
}
