#factor-lower-quartile .table-wrap{overflow-x:auto;margin:14px 0}
#factor-lower-quartile table{width:100%;font-variant-numeric:tabular-nums}
#factor-lower-quartile th,#factor-lower-quartile td{padding:9px 10px;text-align:right;white-space:nowrap}
#factor-lower-quartile th:first-child,#factor-lower-quartile td:first-child{text-align:left}
#factor-lower-quartile td:last-child{white-space:normal;min-width:220px}
/* Heatmap: let the shared .heatmap rules own geometry; only fix width + alignment here. */
#factor-lower-quartile .cost-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:20px}
#factor-lower-quartile .cost-panels h3{margin:0 0 4px;font-size:14px;font-weight:500;color:var(--secondary)}
#factor-lower-quartile .heatmap{margin:0}
#factor-lower-quartile .heatmap table{min-width:360px;table-layout:fixed}
#factor-lower-quartile .heatmap th,#factor-lower-quartile .heatmap td{padding:0;text-align:center;white-space:normal}
#factor-lower-quartile .heatmap th{padding:6px 2px;font-size:12px}
#factor-lower-quartile .heatmap th:first-child,#factor-lower-quartile .heatmap td:first-child{width:56px;text-align:left;padding-left:4px;font-size:12px;color:var(--secondary)}
#factor-lower-quartile .heatmap td button{min-height:44px;min-width:0;font-size:13px;cursor:pointer}
#factor-lower-quartile .heatmap td button:hover{filter:brightness(.95)}
#factor-lower-quartile .heatmap .selected-window{outline:0;box-shadow:inset 0 -3px var(--accent)}
#factor-lower-quartile #lqret-legend .legend{margin:4px 0 0}
#factor-lower-quartile .hint{font-size:13px;color:var(--muted);margin:6px 0 0}
/* Cell detail: card with a stat grid instead of a 16-row table. */
#factor-lower-quartile .cell-detail{margin:20px 0;padding:18px 20px;border:1px solid var(--line);border-radius:6px;background:var(--tint)}
#factor-lower-quartile .cell-detail>strong{display:block;font-size:15px;margin-bottom:12px}
#factor-lower-quartile .stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px 18px;margin:0 0 14px}
#factor-lower-quartile .stat-grid dt{font-size:11px;color:var(--muted)}
#factor-lower-quartile .stat-grid dd{margin:2px 0 0;font-size:15px;font-variant-numeric:tabular-nums}
#factor-lower-quartile .cell-detail p{font-size:13px;color:var(--secondary);margin:6px 0}
#factor-lower-quartile .cell-detail .downloads{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px}
#factor-lower-quartile details{margin:14px 0;border-top:1px solid var(--line);padding-top:10px}
#factor-lower-quartile details>summary{cursor:pointer;font-weight:500}
#factor-lower-quartile h3{margin-top:28px}
@media(max-width:900px){#factor-lower-quartile .cost-panels{grid-template-columns:1fr}}
