/* The crystal door briefly reveals the same hall visitors enter. */
.civic-entrance {
  --entry-facade: url('/athenaeum/foothills-day.webp?v=civic-wardrobe-2');
  --entry-hall: url('/athenaeum/hall-day-r11-r1234.webp');
}
html[data-hall-light="night"] .civic-entrance {
  --entry-facade: url('/athenaeum/foothills-night.webp?v=civic-wardrobe-2');
  --entry-hall: url('/athenaeum/hall-night-r11-r1234.webp');
}
.civic-entrance .door-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
.civic-entrance[data-door-opening] .door-reveal {
  visibility: visible;
  background: var(--entry-hall) 70% 55% / auto 100% no-repeat #16212c;
}
.civic-entrance[data-door-opening] .door-reveal::before,
.civic-entrance[data-door-opening] .door-reveal::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-image: var(--entry-facade);
  background-size: 3703.7% 664.9%;
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(.42, .03, .24, 1);
  animation-fill-mode: both;
}
.civic-entrance[data-door-opening] .door-reveal::before {
  left: 0;
  background-position: 48.64% 67.24%;
  animation-name: entry-leaf-left;
}
.civic-entrance[data-door-opening] .door-reveal::after {
  right: 0;
  background-position: 51.42% 67.24%;
  animation-name: entry-leaf-right;
}
@keyframes entry-leaf-left { to { transform: translateX(-101%); } }
@keyframes entry-leaf-right { to { transform: translateX(101%); } }

#collections .hall-welcome { align-items: center; }
.hall-welcome .hall-desk-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
}
#collections .hall-frame .hall-moses:focus-visible {
  outline: 2px solid #f8eacb;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #1b2a3c;
}

/* Keep the reading action close to the title and group the archive optics. */
.record-reading {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: end;
  margin-block: .9rem 1.2rem;
}
.record-reading[hidden] { display: none; }
.record-reading label {
  display: grid;
  gap: .35rem;
  min-width: min(100%, 11rem);
  font-weight: 600;
}
.record-reading select,
.record-reading .record-insert {
  box-sizing: border-box;
  min-height: 44px;
  font: inherit;
}
.record-reading .record-insert {
  padding-inline: 1rem;
  background: var(--ink, #182d46);
  color: var(--surface, #f4f7fa);
  cursor: pointer;
}
.record-reading .record-insert:disabled { opacity: .66; }
.record-drive-details { margin-block-start: .6rem; }
.record-drive-details summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}
.record-drive-details[open] .drive-face-study { margin-block: .3rem .8rem; }

@media (max-width: 680px) {
  #collections .hall-welcome .hall-desk-link { width: auto; }
  .record-reading > * { max-width: 100%; }
  #record .record-layout > article { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .civic-entrance[data-door-opening] .door-reveal::before,
  .civic-entrance[data-door-opening] .door-reveal::after { animation: none; }
}
