/* Directory controls share the artist navigation capsule's geometry. */
.archive-sort-control {
  position: relative;
  min-height: 44px;
  font: 500 16px/1 var(--type-family);
  text-transform: none;
  white-space: nowrap;
}
html body .archive-sort-control summary { display:flex; align-items:center; gap:10px; min-height:44px; padding:0 16px; border-radius:999px; list-style:none; cursor:pointer; color:var(--type-primary); font:500 16px/1 var(--type-family); }
.archive-sort-control summary::-webkit-details-marker { display:none; }
.archive-sort-control summary:hover, .archive-sort-control[open] summary { background:rgba(255,255,255,.1); }
.archive-sort-menu { position:absolute; bottom:calc(100% + 14px); right:0; width:184px; margin:0; padding:6px; border:1px solid rgba(255,255,255,.18); border-radius:8px; background:rgba(28,28,30,.96); backdrop-filter:blur(20px); color:var(--type-primary); }
.archive-sort-menu legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.archive-sort-menu label { display:flex; align-items:center; gap:12px; min-height:44px; padding:0 12px; border-radius:4px; cursor:pointer; font:500 16px/1 var(--type-family); }
.archive-sort-menu label:hover, .archive-sort-menu label:focus-within { background:rgba(255,255,255,.1); }
.archive-sort-menu input { width:14px; height:14px; margin:0; accent-color:#f2f0ea; color-scheme:dark; }
html body .artist-field.is-index .index-roster:not([data-sort="name"]) .index-group {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
html body .artist-field.is-index .index-roster:not([data-sort="name"]) .index-letter {
  position: static;
  font: 500 16px/1.3 var(--type-family);
  color: var(--type-secondary);
}
@media(max-width:760px) {
  html body .archive-sort-control summary { padding:0 10px; }
}
html body .archive-page:not(.is-feature-open) .archive-bottom-view,
html body.panelists-system .panelist-index-controls {
  position: fixed !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  display: flex;
  align-items: center;
  width: max-content !important;
  max-width: calc(100% - 24px);
  height: auto !important;
  min-height: 54px;
  margin: 0;
  padding: 4px !important;
  gap: 2px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  background: rgba(28,28,30,.82) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 40;
}
html body.panelists-system .panelist-mode-controls { display: flex; gap: 2px !important; }
html body .archive-page .archive-bottom-view button,
html body.panelists-system .panelist-mode-controls button {
  position: relative;
  min-height: 44px;
  padding: 0 16px !important;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  font: 500 16px/1 var(--type-family) !important;
  text-transform: none;
  text-decoration: none !important;
  transition: background-color 150ms ease;
}
html body .archive-page .archive-bottom-view button:is(:hover,:focus-visible),
html body.panelists-system .panelist-mode-controls button:is(:hover,:focus-visible) { background: rgba(255,255,255,.1) !important; }
html body .archive-bottom-view button::after,
html body.panelists-system .panelist-mode-controls button::after { display: none !important; }
html body .archive-bottom-view button[aria-pressed="true"],
html body.panelists-system .panelist-mode-controls button.is-active { color: var(--type-primary) !important; }
@media(max-width:760px) {
  html body .archive-page .archive-bottom-view button,
  html body.panelists-system .panelist-mode-controls button { padding: 0 10px !important; }
}
@media(prefers-reduced-motion:reduce) {
  html body .archive-page .archive-bottom-view button,
  html body.panelists-system .panelist-mode-controls button { transition: none; }
}
