/* Hall: a quiet identity row, then artwork rankings, collections and exhibitions. */
.hall-top {
  display: grid;
  grid-template-columns: min(55%, 484px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 24px);
}
.hall .hall-top > .hall-section { margin: 0; }
.hall .hall-top .hall-section-body { width: 100%; margin: 0; }
.hall-top .hall-friends-section {
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7c7c2 transparent;
}
.hall-top .hall-profile {
  display: grid;
  grid-template-columns: minmax(0, 420px) max-content;
  align-items: center;
  column-gap: clamp(10px, 1.5vw, 18px);
}
.hall-top .hall-profile-card { min-width: 0; }
.hall-top .hall-profile-links {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
}
.hall-profile-links .hall-link { min-height: 26px; }
.hall-top .hall-profile-form { grid-column: 1 / -1; max-width: 100%; }
.hall-top .hall-search { width: 100%; margin: 0 0 16px; gap: 6px; }
.hall-top .hall-search .hall-input { font-size: 12px; }
.hall .hall-rankings-section { margin-top: clamp(76px, 12svh, 132px); }
.hall .hall-rankings-section .hall-section-body { width: 100%; margin: 0; }
.hall-rankings-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 25px;
}
.hall-rankings-header .hall-heading { margin: 0; }
.hall-rankings-modes { display: flex; align-items: baseline; gap: 14px; }
.hall-ranking-mode {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  padding: 4px 0 5px;
  white-space: nowrap;
}
.hall-ranking-mode:hover { color: var(--ink); background: transparent; }
.hall-ranking-mode[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.hall-ranking-list {
  display: flex;
  align-items: stretch;
  gap: clamp(22px, 3vw, 38px);
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  user-select: none;
}
.hall-ranking-list::-webkit-scrollbar { display: none; }
.hall-ranking-list[data-dragging],
.hall-ranking-list[data-dragging] .hall-ranking-open { cursor: grabbing; }
.hall-ranking-list:empty { display: none; }
.hall-ranking-item {
  flex: 0 0 clamp(170px, 20vw, 210px);
  min-width: 0;
}
.hall-ranking-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 4px 0 9px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  box-shadow: none;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.hall-ranking-open:hover { background: none; }
.hall-ranking-place { color: var(--muted); font-size: 11px; line-height: 1.6; }
.hall-ranking-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin: 12px 0 20px;
}
.hall-ranking-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hall-ranking-facts { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hall-ranking-title { font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.hall-ranking-artist { color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.hall-ranking-artist:empty { display: none; }
.hall-open-market-section {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 20px;
}
.hall-open-market-section .hall-heading { margin: 0; }
.hall-open-market-section .hall-section-body { display: contents; }
.hall-open-market-link {
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 6px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.hall-open-market-link:hover { background: var(--ink); color: var(--paper); }
.hall-ranking-value { margin-top: 3px; font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.hall-ranking-open:hover .hall-ranking-title { color: var(--muted); }
.hall-ranking-open:focus-visible,
.hall-ranking-mode:focus-visible,
.hall-ranking-list:focus-visible { outline: 1px solid #888880; outline-offset: 5px; }
@media (max-width: 640px) {
  .hall-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hall-top .hall-friends-section { width: 100%; }
  .hall .hall-rankings-section { margin-top: 76px; }
  .hall-rankings-header { gap: 18px; margin-bottom: 22px; }
  .hall-rankings-modes { gap: 14px; }
  .hall-ranking-item { flex-basis: 170px; }
  .hall-ranking-art { margin-bottom: 16px; }
}
