/* The Levels Framework — matrix styles, Golden Hour. Scoped under .lv.
   Column-hover highlight is wired in res-levels.js (adds .on to a column's
   header + cells). The per-column badge fill uses --fill (0–1) against honey. */

.lv-attribution {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
  margin-top: 16px;
  max-width: 62ch;
}
.lv-attribution em { font-style: italic; }

.lv-board {
  margin-top: clamp(30px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
}
.lv-board-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.lv-matrix { border-collapse: collapse; width: 100%; min-width: 940px; }
.lv-matrix th,
.lv-matrix td {
  text-align: left;
  vertical-align: top;
  padding: 16px clamp(14px, 1.4vw, 20px);
  transition: background-color 0.16s ease;
}
.lv-matrix thead th {
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
}
.lv-matrix thead th.lv-corner { width: 132px; }

.lv-col-head { display: flex; align-items: center; gap: 10px; }
.lv-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  background: rgba(199, 122, 26, var(--fill));            /* honey @ --fill */
  box-shadow: inset 0 0 0 1px rgba(199, 122, 26, 0.30);
}
.lv-col-head[data-lo] .lv-badge { color: var(--clay); }   /* legible on pale fills */
.lv-ch-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.lv-row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
  width: 128px;
}
.lv-matrix tbody tr { border-top: 1px solid var(--hair); }
.lv-matrix tbody tr:first-child { border-top: 0; }

.lv-cell {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.lv-cell.lv-title-cell {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.lv-cell.lv-muted { color: var(--muted); font-style: italic; opacity: 0.72; }

/* hover column highlight */
.lv-matrix td.on,
.lv-matrix th.on { background: rgba(199, 122, 26, 0.06); }
.lv-matrix th.on .lv-ch-label { color: var(--clay); }

@media (max-width: 640px) {
  .lv-board { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-matrix th,
  .lv-matrix td { transition: none; }
}
