/* The navigation window shares the observatory palette on every page. */
body .drawer-fab { min-width: 44px; min-height: 44px; }
body .drawer-layer[hidden] { display: none !important; }
body .drawer-layer {
  --menu-text: #f1e7dc;
  --menu-soft: #c7b7bc;
  --menu-gold: #dfbc91;
  --menu-line: #59424d;
  z-index: 90;
}
body .drawer-layer .drawer-backdrop {
  background: #09070bd6;
  cursor: pointer;
}
body .drawer-layer .drawer-panel {
  width: min(430px, 100%);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding: max(22px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-left: 1px solid #785866;
  background: #151216;
  background-image: radial-gradient(ellipse at 90% 0, #37232e55, transparent 46%);
  color: var(--menu-text);
  box-shadow: -12px 0 40px #0007;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #785866 #151216;
  -webkit-overflow-scrolling: touch;
}
body .drawer-layer .drawer-panel > * { flex-shrink: 0; }
body .drawer-layer .drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #151216;
  box-shadow: 0 -24px 0 #151216;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--menu-line);
}
body .drawer-layer .drawer-eyebrow {
  margin: 0 0 7px;
  color: var(--menu-gold);
  font: 10px/1.6 Consolas, 'Courier New', monospace;
  letter-spacing: .13em;
  font-weight: 400;
}
body .drawer-layer #drawer-title {
  margin: 0;
  color: var(--menu-text);
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: none;
}
body .drawer-layer .drawer-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #815f6c;
  border-radius: 2px;
  background: #2b2028;
  color: var(--menu-text);
  font: 27px/1 sans-serif;
  cursor: pointer;
}
body .drawer-layer .drawer-search { margin: 0; }
body .drawer-layer .drawer-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--menu-soft);
  font-size: 13px;
  line-height: 1.5;
}
body .drawer-layer .drawer-search > div {
  display: flex;
  align-items: stretch;
  min-height: 50px;
  border: 1px solid #805c6c;
  background: #100e12;
}
body .drawer-layer .drawer-search input {
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--menu-text);
  font: 16px/1.5 'Noto Sans JP', 'Yu Gothic', sans-serif;
  appearance: none;
}
body .drawer-layer .drawer-search input::placeholder { color: #a996a4; opacity: 1; }
body .drawer-layer .drawer-search button {
  flex-shrink: 0;
  min-width: 68px;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-left: 1px solid #805c6c;
  border-radius: 0;
  background: #3b2b35;
  color: #f4dfc9;
  font: 14px/1.5 'Noto Sans JP', 'Yu Gothic', sans-serif;
  cursor: pointer;
}
body .drawer-layer .drawer-panel h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--menu-soft);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}
body .drawer-layer .drawer-panel h3 > span { color: var(--menu-gold); }
body .drawer-layer .drawer-panel h3 small { color: #ac98a3; font-size: 10px; }
body .drawer-layer .drawer-panel ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body .drawer-layer .drawer-panel [hidden] { display: none !important; }
body .drawer-layer .drawer-panel a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #4e3945;
  border-radius: 1px;
  background: #201921;
  color: var(--menu-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: anywhere;
}
body .drawer-layer .drawer-page-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13px;
  align-content: center;
  gap: 4px 6px;
  min-height: 75px;
  padding: 13px 12px;
}
body .drawer-layer .drawer-page-grid a > span:first-child { font-size: 15px; line-height: 1.5; }
body .drawer-layer .drawer-page-grid small {
  grid-column: 1;
  color: #b4a1ad;
  font: 9px/1.5 Consolas, 'Courier New', monospace;
  letter-spacing: .04em;
}
body .drawer-layer .drawer-link-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: #c6a3ad;
  font-size: 16px;
}
body .drawer-layer .drawer-page-grid a.is-current {
  border-color: #c18d9e;
  background: #392a34;
  box-shadow: inset 3px 0 0 #dfbc91;
}
body .drawer-layer .drawer-page-grid a.is-current > span:first-child { color: #f8dec4; }
body .drawer-layer .drawer-member-link { grid-column: 1 / -1; }
body .drawer-layer .drawer-member-link a { min-height: 70px; border-color: #8e6a57; background: #2d2324; }
body .drawer-layer .drawer-external { padding-top: 19px; border-top: 1px solid var(--menu-line); }
body .drawer-layer .drawer-external ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
body .drawer-layer .drawer-external a {
  min-height: 46px;
  gap: 5px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #44313b;
  border-radius: 0;
  background: transparent;
  color: #d3bdc6;
  font-size: 13px;
}
body .drawer-layer .drawer-external a > span:last-child { color: #c6a3ad; }
body .drawer-layer .drawer-panel a:hover,
body .drawer-layer .drawer-search button:hover,
body .drawer-layer .drawer-close:hover { background-color: #412d38; color: #fff2e2; }
body .drawer-layer .drawer-panel :focus-visible {
  outline: 2px solid #f1c89a;
  outline-offset: 2px;
}
body .drawer-layer .drawer-search input:focus-visible { outline-offset: -3px; }
body .drawer-layer .drawer-signature {
  margin: 0;
  color: #a792a0;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
body .drawer-layer .drawer-signature span { color: #d6b28c; margin-right: 5px; }
@media (min-width: 360px) {
  body .drawer-layer .drawer-panel .drawer-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  body .drawer-layer, body .drawer-layer * { scroll-behavior: auto; }
}
