/* The gig competition page: a top-five board in the rank-sheet identity, then the full table. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.room-page h2 { font-size: var(--t-h3); margin: 0 0 var(--s4); }
.room-page .sources h2 { font-size: 0.9375rem; margin: 0 0 var(--s2); }

/* Most room: five rungs, the place in a gold plate */
.room-top { margin: 0 0 var(--s7); max-width: 720px; }
.room-board { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.room-rung { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.room-rung:last-child { border-bottom: 0; }
.room-plate {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--gold); color: #1E1B18; border-radius: 4px; box-shadow: inset 0 0 0 2px #1E1B18; transform: rotate(-3deg);
  font-stretch: 62%; font-weight: 800; font-size: 1.875rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.room-rung b { display: block; font-size: 1.0625rem; line-height: 1.3; }
.room-rung b a { text-decoration: none; }
.room-rung b a:hover { text-decoration: underline; }
.room-rung div > span { font-size: var(--t-small); color: var(--muted); }
.room-share { text-align: right; font-stretch: 62%; font-weight: 800; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.room-share small { display: block; font-stretch: 100%; font-weight: 400; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* Controls */
.room-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
.room-bar h2 { margin: 0 auto 0 0; }
.room-bar input, .room-bar select {
  min-height: 44px; padding: 8px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--chalk); border: 1.5px solid var(--line); border-radius: var(--radius-s);
}
.room-bar input:focus, .room-bar select:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.room-sort { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-small); font-weight: 700; }
.room-cats { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.room-cats button {
  min-height: 36px; padding: 0 var(--s3); font: inherit; font-size: 0.875rem; color: var(--ink); cursor: pointer;
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
}
.room-cats button:hover { border-color: var(--ink); }
.room-cats button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.room-cats button span { color: inherit; opacity: .65; font-variant-numeric: tabular-nums; margin-left: 4px; }

/* Table */
.room-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.room-table th { text-align: left; font-size: 0.8125rem; font-weight: 700; color: var(--muted); padding: var(--s2) var(--s3); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.room-table th abbr { text-decoration: none; }
.room-table td { padding: var(--s3); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: middle; }
.room-table td:first-child { font-weight: 600; }
.room-table td:first-child a { text-decoration: none; }
.room-table td:first-child a:hover { text-decoration: underline; }
.room-table td:first-child small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.room-table th:nth-child(n+3), .room-table td:nth-child(n+3) { text-align: right; }
.room-table tr[hidden] { display: none; }
.verdict { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.8125rem; font-weight: 700; border: 1.5px solid currentColor; }
.verdict.open { color: var(--rise); }
.verdict.mixed { color: var(--gold-text); }
.verdict.crowded { color: var(--drop); }
.room-none { color: var(--muted); padding: var(--s4) 0; }

.room-method { padding-left: 18px; max-width: 70ch; }
.room-method li { margin-bottom: var(--s2); }
.room-page > h2 { margin-top: var(--s7); }

@media (max-width: 720px) {
  .room-rung { grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s3); padding: var(--s3) var(--s4); }
  .room-plate { width: 40px; height: 40px; font-size: 1.5rem; }
  .room-bar h2 { flex-basis: 100%; }
  .room-find { flex: 1 1 160px; }
  .room-find input { width: 100%; }
  .room-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .room-table, .room-table tbody { display: block; }
  .room-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s1) var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .room-table td { border: 0; padding: 0; text-align: left !important; }
  .room-table td:first-child { grid-column: 1 / 4; }
  .room-table td:nth-child(2) { text-align: right !important; }
  .room-table td:nth-child(n+3)::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--muted); }
}
