/* ============================================================================
   /how-we-measure/ — The WiseList Basket Test (tpl-how-we-measure.php)
   Ported from the approved prototype. Fonts and colours are deliberate:
   Source Serif 4 (headings), Inter (body), IBM Plex Mono (figures/rules) on
   warm paper. Everything is scoped under .wl-hwm so style.css globals
   (centred blue h2, 80px sections, 1.1rem p) are overridden here only.
   ========================================================================== */
.wl-hwm {
	--ink: #1A2420; --muted: #66736D; --paper: #FAFAF7; --card: #FFFFFF;
	--receipt: #FFFDF4; --rule: #E3E6E2; --rule-dark: #C9CFCA;
	--green: #00794F; --brand: #00A96E; --amber: #B45309; --amber-bg: #FEF3E2;
	--serif: "Source Serif 4", Georgia, serif;
	--sans: "Inter", -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
	font-family: var(--sans); color: var(--ink); background: var(--paper);
	line-height: 1.65; font-size: 16.5px;
}
.wl-hwm * { box-sizing: border-box; }
.wl-hwm a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.wl-hwm a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hwm-wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }

.wl-hwm .hwm-page { padding: 64px 0 40px; }
.hwm-eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0 0 14px; }
.wl-hwm h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5.5vw, 52px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); margin: 0; text-align: left; }
.hwm-stand { font-size: 19px; color: var(--muted); margin: 18px 0 0; max-width: 64ch; line-height: 1.55; }
.hwm-stand b { color: var(--ink); font-weight: 600; }

.hwm-banner {
	background: var(--amber-bg); border: 1px solid var(--amber); color: var(--amber);
	font-family: var(--mono); font-size: 13.5px; padding: 12px 16px; border-radius: 8px; margin: 26px 0 0;
}

.wl-hwm section { padding: 44px 0; border-top: 1px solid var(--rule); }
.wl-hwm h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--ink); text-align: left; margin: 0 0 8px; line-height: 1.25; }
.hwm-sub { color: var(--muted); margin: 0 0 26px; max-width: 62ch; font-size: 16.5px; }
.hwm-sub b { color: var(--ink); font-weight: 600; }
.wl-hwm p { font-size: inherit; color: inherit; }

/* ── Results as till receipts ── */
.hwm-receipts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 760px) { .hwm-receipts { grid-template-columns: repeat(2, 1fr); } }
.hwm-receipt {
	background: var(--receipt); border: 1px solid var(--rule-dark); border-radius: 4px;
	padding: 16px 14px 14px; font-family: var(--mono); position: relative; box-shadow: 0 1px 0 var(--rule);
}
.hwm-receipt::after { /* torn docket edge */
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
	background:
		linear-gradient(-45deg, transparent 66%, var(--receipt) 67%) 0 0/12px 6px repeat-x,
		linear-gradient(45deg, transparent 66%, var(--receipt) 67%) 0 0/12px 6px repeat-x;
	filter: drop-shadow(0 1px 0 var(--rule-dark));
}
.hwm-receipt .store { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hwm-receipt .total { font-size: clamp(20px, 3vw, 26px); font-weight: 600; margin-top: 8px; letter-spacing: -.01em; }
.hwm-receipt .note { font-size: 11.5px; color: var(--muted); margin-top: 6px; min-height: 2.6em; }
.hwm-receipt.split { background: #F2FBF6; border-color: var(--brand); }
.hwm-receipt.split .store, .hwm-receipt.split .total { color: var(--green); }
.hwm-receipt .tag {
	display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 99px;
	background: var(--green); color: #fff; margin-top: 8px; letter-spacing: .05em; text-transform: uppercase;
}
.hwm-runmeta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 22px 0 0; line-height: 1.8; }

/* Honest bar strip */
.hwm-bars { margin-top: 30px; }
.hwm-bar-row { display: grid; grid-template-columns: 150px 1fr 84px; align-items: center; gap: 12px; margin-bottom: 10px; }
@media (max-width: 560px) { .hwm-bar-row { grid-template-columns: 104px 1fr 76px; } }
.hwm-bar-label { font-family: var(--mono); font-size: 13px; }
.hwm-bar-track { background: var(--rule); border-radius: 3px; height: 22px; overflow: hidden; }
.hwm-bar-fill { height: 100%; background: var(--rule-dark); border-radius: 3px; transition: width .5s ease; }
.hwm-bar-row.split .hwm-bar-fill { background: var(--brand); }
.hwm-bar-val { font-family: var(--mono); font-size: 13.5px; text-align: right; }
.hwm-axis-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

.hwm-callout { background: var(--card); border-left: 3px solid var(--brand); padding: 18px 20px; margin-top: 30px; font-size: 16px; }
.hwm-callout b { font-weight: 600; }

/* Basket table */
.hwm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wl-hwm table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.wl-hwm caption { text-align: left; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 10px; caption-side: top; }
.wl-hwm th {
	text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
	color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--rule-dark); padding: 8px 10px 8px 0; background: none;
}
.wl-hwm td { border-bottom: 1px solid var(--rule); padding: 9px 10px 9px 0; vertical-align: top; color: var(--ink); }
.hwm-basket .c-item { width: 36%; } .hwm-basket .c-spec { width: 26%; }
.hwm-basket tr.cat td { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); padding-top: 22px; border-bottom: 1px solid var(--rule-dark); }
.hwm-basket td.spec { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hwm-basket td.rule { color: var(--muted); }
.hwm-provenance { font-size: 14.5px; color: var(--muted); margin: 16px 0 0; max-width: 64ch; }

/* Rules — numbered because they are citable */
.hwm-rules { counter-reset: rule; max-width: 70ch; list-style: none; margin: 0; padding: 0; }
.hwm-rules li { list-style: none; counter-increment: rule; padding: 18px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 18px; margin: 0; }
.hwm-rules li::before {
	content: "R" counter(rule); font-family: var(--mono); font-size: 13px; color: var(--green);
	border: 1px solid var(--rule-dark); border-radius: 4px; height: 28px; min-width: 34px; flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.hwm-rules b { font-weight: 600; color: var(--ink); }
.hwm-rules p { color: var(--muted); font-size: 15px; margin: 2px 0 0; }

.hwm-limits { max-width: 70ch; color: var(--muted); font-size: 15.5px; margin: 0; padding: 0 0 0 18px; }
.hwm-limits li { margin: 10px 0; }

/* Archive ledger */
.hwm-ledger td, .hwm-ledger th { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.hwm-ledger td.win { color: var(--green); font-weight: 600; }
.hwm-empty { font-family: var(--mono); font-size: 13.5px; color: var(--muted); padding: 14px 0; }
.hwm-changelog div { margin: 6px 0; }

.hwm-foot-cta { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 26px; margin: 40px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hwm-foot-cta b { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.wl-hwm .hwm-foot-cta a { background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 22px; border-radius: 99px; font-size: 15px; }
.hwm-questions { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 24px 0 48px; }
