/* Waffle view. Live variables, fonts and colours of results.css only. */
.wf-toolbar { margin: 18px 0 14px; flex-wrap: wrap; }
.wf-features { flex-wrap: wrap; gap: 0 24px; }
.wf-features a { font-size: 15px; white-space: nowrap; }
.wf-features a[aria-current] { color: var(--result-text); border-color: var(--result-accent); }
.wf-feat-name { color: var(--result-muted); }
.wf-features a[aria-current] .wf-feat-name, .wf-features a:hover .wf-feat-name { color: inherit; }
.wf-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 14px; color: var(--result-muted); }
.wf-legend span { display: inline-flex; align-items: center; gap: 8px; }
.wf-legend i, .wf-swatch { display: inline-block; flex: none; width: 12px; height: 12px; }
.wf-swatch { margin-right: 7px; vertical-align: -1px; }
.wf-legend .wf-band-key { display: inline-grid; grid-template-rows: repeat(4, 3px); gap: 1px; width: 12px; height: 15px; }
.wf-band-key b { background: #7e8b90; }
.results-page .wf-unit { margin: 10px 0 12px !important; }

.wf-figure { position: relative; }
.wf-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
.wf-board { --wf-label: 276px; --wf-sum: 44px; --wf-row: 15px; position: relative; }
.wf-head, .wf-body { display: flex; align-items: stretch; }
.wf-corner, .wf-labels { position: sticky; left: 0; z-index: 3; flex: none; width: var(--wf-label); background: var(--result-bg); }
.wf-corner { display: flex; flex-direction: column; justify-content: space-between; padding: 0 12px 7px 0; font-size: 13px; color: var(--result-muted); }
.wf-corner small { font-size: 12px !important; }
.wf-corner-n { align-self: flex-end; order: -1; font: 12px var(--result-mono); }
.wf-colhead { position: relative; flex: none; padding-bottom: 5px; }
.wf-groups { position: relative; font: 12px var(--result-mono); color: var(--result-muted); }
.wf-groups span { position: absolute; top: 0; height: 17px; border-bottom: 1px solid #62686d; white-space: nowrap; overflow: visible; }
.wf-groups b { font-weight: 400; color: var(--result-text); }
.wf-groups small { font-size: 12px !important; }
.wf-names { position: relative; margin-top: 3px; }
.wf-names button { position: absolute; bottom: 0; height: 100%; padding: 0; border: 0; background: none; color: #b5bcc1 !important; overflow: visible; }
.wf-names button span { position: absolute; left: 50%; bottom: 2px; transform-origin: left bottom; transform: rotate(-90deg) translateY(50%); font: 10px/1 var(--result-mono); white-space: nowrap; }
.wf-names button:hover, .wf-names button[aria-pressed=true] { color: var(--result-text) !important; }
.wf-names button[aria-pressed=true] span { font-weight: 700; }
.wf-names button.is-dim { opacity: .45; }
.wf-bars { display: block; margin-top: 3px; overflow: visible; }
.wf-bars rect { fill: #7ddfd4; opacity: .85; }
.wf-bar-base { stroke: var(--result-line); stroke-width: 1; }
.wf-sumhead { flex: none; width: var(--wf-sum); display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: 6px; font-size: 12px; line-height: 1.2; color: var(--result-muted); text-align: right; }
.wf-row { display: flex; align-items: center; gap: 5px; width: 100%; height: var(--wf-row); padding: 0 10px 1px 0; border: 0; background: none; text-align: left; font-size: 11.5px !important; line-height: 1; white-space: nowrap; }
.wf-row .wf-rank { flex: none; width: 18px; font: 11px var(--result-mono); color: var(--result-muted); text-align: right; }
.wf-row .org-logo { margin: 0; }
.wf-row .wf-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wf-row small { flex: none; font-size: 10.5px !important; color: var(--result-muted); }
.wf-row:hover .wf-name, .wf-row[aria-pressed=true] .wf-name { text-decoration: underline; text-underline-offset: 3px; }
.wf-row[aria-pressed=true] { font-weight: 700; }
.wf-row.is-dim { opacity: .45; }
.wf-cells { position: relative; flex: none; outline-offset: 6px; cursor: crosshair; }
.wf-cells canvas { display: block; }
.wf-mark { position: absolute; pointer-events: none; box-sizing: border-box; }
.wf-hover-row, .wf-hover-col { border: 1px solid #8f989c; }
.wf-pin-row, .wf-pin-col { border: 1.5px solid #eef0ec; }
.wf-cursor { border: 2px solid var(--result-accent); border-radius: 1px; z-index: 1; }
.wf-sums { flex: none; width: var(--wf-sum); }
.wf-sums span { display: flex; align-items: center; justify-content: flex-end; height: var(--wf-row); padding-bottom: 1px; font: 11.5px/1 var(--result-mono); color: #c8cdc9; font-variant-numeric: tabular-nums; }
.is-narrow .wf-row { font-size: 11px !important; gap: 4px; padding-right: 8px; }
.is-narrow .wf-row small { display: none; }
.is-narrow .wf-row .wf-rank { width: 14px; font-size: 10px; }
.results-page .wf-tip { position: fixed; z-index: 40; width: 372px; max-width: calc(100vw - 16px); font-size: 13px; line-height: 1.45; }
.wf-tip strong { font-weight: 600; }
.wf-tip-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; color: var(--result-text); }
.wf-tip-head i, .wf-tip-all i { display: inline-block; flex: none; width: 10px; height: 10px; }
.wf-tip-table { width: 100%; margin: 2px 0 6px; border-collapse: collapse; font: 12px var(--result-mono); }
.wf-tip-table th { padding: 2px 8px 3px 0; color: var(--result-muted); font-weight: 400; text-align: left; border-bottom: 1px solid var(--result-line); }
.wf-tip-table td { padding: 3px 8px 0 0; }
.wf-tip-all { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--result-line); font: 12px var(--result-mono); }
.wf-tip-all span { display: inline-flex; align-items: center; gap: 5px; }
.wf-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); white-space: nowrap; }
.results-page .wf-keys { margin-top: 12px !important; max-width: 1000px; }
.wf-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--result-line); }
.wf-detail h2 { margin-top: 10px !important; font-size: 20px !important; }
.wf-detail h2 .org-logo { margin-right: 8px; vertical-align: -0.12em; }
.wf-detail dl { margin: 12px 0 0; font-size: 14px; }
.wf-detail dl > div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--result-line); }
.wf-detail dt { color: var(--result-muted); }
.wf-detail dd { margin: 0; font-variant-numeric: tabular-nums; }
.wf-detail dd a, .wf-explain a { text-decoration: underline; text-underline-offset: 3px; }
.wf-detail .back-link { margin: 12px 0 0; font-size: 14px; }
.wf-detail-cell { grid-column: 1 / -1; font-size: 14px; }
.wf-detail-cell p { margin-top: 8px !important; color: var(--result-muted); max-width: 1100px; }
.wf-detail-cell strong { color: var(--result-text); font-weight: 600; }
.wf-clear { width: auto; margin-top: 16px; border-top: 1px solid var(--result-line); padding: 6px 14px; }
.wf-summary td:first-child .org-logo { margin-right: 8px; vertical-align: -0.2em; }
.wf-summary td:first-child a { display: inline; }
.wf-summary th { white-space: nowrap; }
.wf-table summary { color: var(--result-muted); }

@media (max-width: 850px) {
  .wf-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
  .wf-features { gap: 0 18px; }
  .wf-feat-name { display: none; }
  .wf-legend { gap: 5px 16px; font-size: 13px; }
  .wf-detail dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
