/* A fixed disclosure opens upward from its paper tab, keeping the directory in view. */
.hub-home { margin: 0; min-height: 100vh; min-height: 100svh; }
.hub-directory { padding: 0 8px 9rem; }
.hub-home { scroll-padding-bottom: 9rem; }
.hub-directory a { scroll-margin-bottom: 9rem; }
.invitation-board {
  --edge: max(.75rem, env(safe-area-inset-bottom));
  position: fixed; z-index: 2;
  right: max(.75rem, env(safe-area-inset-right)); bottom: var(--edge);
  width: min(16rem, calc(100vw - 1.5rem)); color: #243d2d;
  font: 1rem/1.35 Georgia, "Times New Roman", serif;
}
.invitation-board details { position: relative; }
.invitation-tab {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .48rem 1rem;
  box-sizing: border-box; padding: .7rem .9rem .65rem 1.1rem;
  border: 1px solid #aaa98f; border-inline-start: .3rem solid #51684e; border-radius: .5rem;
  background: #fbf8ed; color: #273d30; box-shadow: 0 3px 12px #253c2524;
  cursor: pointer; list-style: none;
}
.invitation-tab::-webkit-details-marker { display: none; }
.board-title { display: grid; }
.board-title strong { font-size: 1.15rem; }
.board-title em { font-size: .95rem; }
.fold {
  display: grid; place-items: center; width: 1.65rem; height: 1.65rem;
  border: 1px solid #c1c4b0; border-radius: 50%;
}
.fold::before {
  content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  transform: translateY(.12rem) rotate(-45deg);
}
details[open] .fold::before { transform: translateY(-.1rem) rotate(135deg); }
@media (min-width: 56rem) {
  .hub-directory { padding-right: 18rem; }
  .invitation-board { right: 1.25rem; --edge: 1.25rem; }
}
.invitation-tab:focus-visible, .collectionship-panel :focus-visible, .collectionship-page :focus-visible {
  outline: 3px solid #235540; outline-offset: 2px;
}
.collectionship-panel, .collectionship-page {
  color: #26362d; background: #fcfbf7; font-family: Georgia, "Times New Roman", serif;
}
.collectionship-panel {
  position: absolute; bottom: calc(100% + .45rem); right: 0; box-sizing: border-box;
  display: flex; flex-direction: column; width: min(35rem, calc(100vw - 2 * var(--edge)));
  height: calc(100vh - 100% - 2 * var(--edge) - .45rem);
  height: calc(100dvh - 100% - var(--edge) - max(var(--edge), env(safe-area-inset-top)) - .45rem);
  overflow: hidden; border: 1px solid #a8b2a3; border-radius: .7rem;
  box-shadow: 0 6px 28px #18261d29;
}
@media (prefers-reduced-motion: no-preference) {
  details[open] .collectionship-panel { animation: board-open .22s ease-out; }
  @keyframes board-open {
    from { clip-path: inset(100% 0 0 round .7rem); transform: translateY(.3rem); }
    to { clip-path: inset(0 round .7rem); transform: translateY(0); }
  }
}
.panel-tools {
  display: flex; flex: none; justify-content: flex-end; align-items: center; padding: .4rem .9rem;
  background: #f0f0e5; border-bottom: 1px solid #d6dacd; font: .95rem/1.4 Georgia, serif;
}
.panel-tools button { border: 1px solid #526d57; border-radius: 5px; padding: .45rem .8rem; font: inherit; cursor: pointer; }
.panel-tools button { background: transparent; color: #26362d; }
.panel-stream { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.collectionship-panel .panel-stream:focus-visible { outline-offset: -3px; }
.invitation { box-sizing: border-box; padding: clamp(1.25rem, 5vw, 2.6rem); }
.invitation h1, .invitation h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: normal; line-height: 1.15; margin: 0; text-wrap: balance; }
.invitation p { font-size: 1.05rem; line-height: 1.58; margin: 1rem 0; }
.invitation .opening { font-style: italic; color: #425b47; margin-top: 1.3rem; }
.invitation .question { border-top: 1px solid #d0d7cd; padding-top: 1.35rem; margin-top: 1.5rem; }
.invitation .closing { margin-block: 1.4rem; }
.invitation-contact a, .page-header a { color: #284e3a; text-underline-offset: .2em; overflow-wrap: anywhere; }
.collectionship-page { margin: 0; }
.collectionship-page main, .page-header { max-width: 46rem; margin: auto; }
.page-header { box-sizing: border-box; padding: 1.6rem clamp(1.25rem, 5vw, 2.6rem) .4rem; }
.collectionship-page main { padding-bottom: 1.5rem; }
.collectionship-panel .invitation { padding: 1.25rem 1.4rem; }
.collectionship-panel .invitation h2 { font-size: 1.7rem; }
