@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3VF-Upright.5f16566f7a40d39b.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3VF-Italic.b4959abc0569392f.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Regular.ca21b99b0d6b88a0.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BIZ UDMincho';
  src: url('fonts/BIZUDMincho-Regular-Latin.af09341c071d1894.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.sidebar-dock {
  position: relative; z-index: 5; display: grid; grid-template-rows: 2.75rem minmax(0, 1fr);
  min-width: 0; min-height: 0; background: var(--sidebar); border-right: 1px solid var(--line);
}
.sidebar-panel { display: grid; min-width: 0; min-height: 0; overflow: clip; }
[data-sidebar-layout][data-sidebar-collapsed] > .sidebar-dock { background: transparent; border: 0; }
[data-sidebar-collapsed] > .sidebar-dock > .sidebar-panel { visibility: hidden; }
[data-sidebar-collapsed] > .sidebar-dock .sidebar-toggle-label { display: none; }
[data-sidebar-collapsed] > .sidebar-dock > .sidebar-toggle {
  position: absolute; top: .32rem; left: .4rem; width: 2.15rem; height: 2.1rem;
  margin: 0; padding: 0; justify-content: center;
}
.sidebar-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-width: 0; margin: .32rem .4rem; padding: .15rem .55rem; border: 1px solid var(--line);
  border-radius: .35rem; background: var(--paper); color: var(--ink); font-weight: 650; cursor: pointer;
}
.sidebar-toggle:hover { border-color: var(--accent); }
.sidebar-toggle > svg { display:none; }
.sidebar-toggle-icon { flex: none; width: .47rem; height: .47rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(135deg); }
.sidebar-toggle[aria-expanded='false'] .sidebar-toggle-icon { transform: rotate(-45deg); }
.sidebar-resize {
  position: absolute; top: 0; bottom: 0; left: 100%; width: .7rem; cursor: col-resize; touch-action: none;
}
.sidebar-resize::before {
  content: ''; position: absolute; top: calc(50% - .95rem); left: 0; width: .36rem; height: 1.9rem;
  border-radius: 0 .22rem .22rem 0; background: var(--accent); opacity: .65;
}
.sidebar-resize:hover::before, .sidebar-resize:focus-visible::before { opacity: 1; }
[data-sidebar-resizing] { cursor: col-resize; user-select: none; }

@media (width > 48rem) {
  [data-sidebar-layout] {
    --sidebar-open-width: clamp(14rem, var(--sidebar-width, 18rem), min(36rem, 55vw));
    --sidebar-track: var(--sidebar-open-width);
  }
  [data-sidebar-layout][data-sidebar-resizing] { transition: none; }
  [data-sidebar-layout][data-sidebar-collapsed] { --sidebar-track: 0px; }
  .sidebar-panel > aside { width: calc(var(--sidebar-open-width) - 1px); }
  [data-sidebar-collapsed] > .sidebar-dock > .sidebar-resize { display: none; }
}
@media (max-width: 48rem) {
  .sidebar-dock { grid-template-rows: 2.75rem minmax(0, 1fr); border-right: 0; }
  [data-sidebar-collapsed] > .sidebar-dock { grid-template-rows: 2.75rem minmax(0, 0fr); }
  .sidebar-toggle-icon { transform: rotate(225deg); }
  .sidebar-toggle[aria-expanded='false'] .sidebar-toggle-icon { transform: rotate(45deg); }
  .sidebar-resize { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-sidebar-layout], .sidebar-dock { transition: none; }
}

/* Atlas has a compact control; the guide's sidebar header remains unchanged. */
.atlas-shell > .sidebar-dock > .sidebar-toggle { justify-self:end; justify-content:center; width:2.5rem; padding:.4rem; border:0; }
.atlas-shell > .sidebar-dock { grid-template-columns:minmax(0,1fr) auto; }
.atlas-top-title { grid-column:1; grid-row:1; align-self:center; min-width:0; margin:0; padding-inline:1rem .2rem; font-family:'Instrument Serif',Georgia,serif; font-size:1.1rem; line-height:1.2; font-weight:400; }
.atlas-shell > .sidebar-dock > .sidebar-toggle { grid-column:2; grid-row:1; }
.atlas-shell > .sidebar-dock > .sidebar-panel { grid-column:1 / -1; }
.atlas-shell[data-sidebar-collapsed] > .sidebar-dock > .atlas-top-title { visibility:hidden; }
.atlas-shell > .sidebar-dock .sidebar-toggle-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.atlas-shell > .sidebar-dock .sidebar-toggle-icon { display:none; }
.atlas-shell > .sidebar-dock .sidebar-toggle > svg { display:block; width:1.25rem; height:1.25rem; }
@media(max-width:48rem) {
  .atlas-shell > .sidebar-dock { position:absolute; z-index:8; inset:0 auto auto 0; box-sizing:border-box; width:100%; height:52px; max-height:none; padding-inline-end:0; grid-template-columns:3.25rem minmax(0,1fr) auto; grid-template-rows:52px; border:0; border-radius:0; box-shadow:none; background:var(--sidebar); overflow:visible; }
  /* The translated menu passes behind the fixed, opaque phone header. */
  .atlas-shell > .sidebar-dock::before { content:''; position:absolute; inset:0 0 auto; height:52px; z-index:1; background:var(--sidebar); pointer-events:none; }
  .atlas-shell > .sidebar-dock > :is(.sidebar-toggle,.atlas-top-title,.atlas-mobile-actions,.atlas-mobile-search-host,.atlas-mobile-menu-close) { z-index:2; }
  .atlas-shell > .sidebar-dock > .sidebar-toggle { grid-column:1; position:relative; inset:auto; justify-self:start; width:2.75rem; height:2.75rem; margin:.25rem; touch-action:pan-x; }
  .atlas-shell > .sidebar-dock > .atlas-top-title { grid-column:2; visibility:visible; padding-inline:0 .25rem; font-size:1.125rem; touch-action:pan-x; }
  .atlas-shell[data-sidebar-collapsed] > .sidebar-dock > .atlas-top-title { visibility:visible; }
  .atlas-shell > .sidebar-dock .atlas-browse-brand { touch-action:pan-x; }
  .atlas-shell > .sidebar-dock > .sidebar-panel { position:absolute; z-index:0; inset:52px auto auto 0; width:100%; height:min(calc(85dvh - 52px),calc(var(--sidebar-visible-height,100dvh) - 52px)); max-height:none; background:var(--sidebar); border-radius:0 0 .75rem .75rem; box-shadow:0 .4rem 1.5rem #0003; clip-path:inset(0); opacity:1; visibility:visible; }
  .atlas-shell[data-sidebar-collapsed] > .sidebar-dock { height:52px; background:var(--sidebar); }
  .atlas-shell[data-sidebar-collapsed] > .sidebar-dock > .sidebar-panel { clip-path:inset(0 0 100% 0); opacity:0; visibility:hidden; pointer-events:none; }
  .atlas-shell[data-sidebar-ready] > .sidebar-dock > .sidebar-panel { transition:clip-path 200ms cubic-bezier(.16,1,.3,1),opacity 140ms ease,visibility 0s linear 0s; }
  .atlas-shell[data-sidebar-ready][data-sidebar-collapsed] > .sidebar-dock > .sidebar-panel { transition-duration:160ms,120ms,0s; transition-delay:0s,0s,160ms; }
  .atlas-shell[data-sidebar-swipe-settling] > .sidebar-dock > .sidebar-panel { transition:translate 200ms cubic-bezier(.32,.72,0,1); clip-path:inset(0); opacity:1; visibility:visible; }
  .atlas-shell[data-sidebar-swiping] > .sidebar-dock > .sidebar-panel { transition:none; clip-path:inset(0); opacity:1; visibility:visible; user-select:none; -webkit-user-select:none; }
  .atlas-shell[data-sidebar-swipe-reset] > .sidebar-dock > .sidebar-panel { transition:none !important; }
}
@media(prefers-reduced-motion:reduce) { .atlas-shell > .sidebar-dock > .sidebar-panel { transition:none !important; } }

.atlas-mobile-search-host,.atlas-mobile-menu-close,.atlas-mobile-menu-panel { display:none; }
@media(max-width:48rem) {
  .atlas-shell > .sidebar-dock > .atlas-mobile-actions { position:static; grid-column:3; grid-row:1; padding-inline-end:.25rem; }
  .atlas-mobile-menu-close { grid-column:3; grid-row:1; justify-self:end; display:none; align-items:center; justify-content:center; box-sizing:border-box; width:2.75rem; height:2.75rem; margin:.25rem; padding:.5rem; border:0; border-radius:.35rem; color:var(--ink); background:var(--paper); }
  .atlas-mobile-menu-close svg { width:1.5rem; height:1.5rem; }
  .atlas-mobile-search-host { grid-column:1 / 3; grid-row:1; min-width:0; padding-inline:.5rem .25rem; }
  .atlas-shell[data-mobile-menu] > .sidebar-dock > :is(.atlas-top-title,.sidebar-toggle,.atlas-mobile-actions) { visibility:hidden; pointer-events:none; }
  .atlas-shell[data-mobile-menu] .atlas-mobile-menu-close { display:flex; }
  .atlas-shell[data-mobile-menu='search'] .atlas-mobile-search-host { display:block; }
  .atlas-mobile-search-host .atlas-search-field { inline-size:100%; block-size:2.75rem; margin-block:.25rem; }
  .atlas-mobile-search-host .atlas-search-toggle { min-width:2.5rem; min-height:2.5rem; }
  .atlas-mobile-search-host :is(.atlas-search-toggle span,#atlas-clear-search) { display:none; }
  .atlas-mobile-search-host #atlas-search { height:2.5rem; font-size:1rem; }
  .atlas-mobile-menu-panel:not([hidden]) { display:flex; flex-direction:column; gap:0; position:absolute; inset:52px 0 auto; box-sizing:border-box; width:100%; max-height:min(75dvh,var(--atlas-mobile-menu-room,75dvh)); padding:.5rem 1rem .75rem; border-radius:0 0 .75rem .75rem; color:var(--ink); background:var(--sidebar); box-shadow:0 .4rem 1.5rem #0003; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
  .atlas-mobile-menu-panel > h3 { flex:none; margin:.8rem 0 .35rem; font-family:inherit; font-size:.9375rem; line-height:1.3; font-weight:600; }
  .atlas-mobile-menu-panel > .atlas-layer-actions { flex:none; margin:0 0 .35rem; }
  .atlas-mobile-menu-panel .atlas-layer-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 .65rem; margin:0; }
  .atlas-mobile-menu-panel .atlas-layer-options label { min-height:1.65rem; padding:.25rem; gap:.5rem; }
  .atlas-shell .atlas-mobile-menu-panel .atlas-layer-options .collectible-symbol { flex:none; width:1.75rem; min-width:1.75rem; height:1.75rem; border-radius:.32rem; }
  .atlas-mobile-menu-panel .atlas-layer-options .atlas-marker-art { width:1.3rem; height:1.3rem; }
  .atlas-mobile-menu-panel #atlas-browse-panel { padding:0; max-height:none; overflow-y:auto; }
  .atlas-mobile-menu-panel #atlas-browse-panel > :is(.atlas-fields,.atlas-browse-filters) { display:none; }
  .atlas-mobile-menu-panel #atlas-browse-list { grid-template-columns:minmax(0,1fr); gap:0; }
  .atlas-mobile-menu-panel .atlas-browse-result { min-height:3.4rem; padding:.5rem .25rem; }
  .atlas-mobile-menu-panel .atlas-browse-meta { margin-top:.1rem; }
  .atlas-shell[data-mobile-menu='filters'] > .sidebar-dock > .atlas-top-title { visibility:visible; grid-column:1 / 3; padding-inline:1rem; }
  @media(prefers-reduced-motion:no-preference) {
    .atlas-mobile-menu-panel:not([hidden]) { animation:atlas-mobile-menu-in 200ms cubic-bezier(.16,1,.3,1); }
    .atlas-mobile-search-host { animation:atlas-mobile-search-in 200ms cubic-bezier(.16,1,.3,1); }
    @keyframes atlas-mobile-menu-in { from { clip-path:inset(0 0 100%); opacity:.35; } to { clip-path:inset(0); opacity:1; } }
    @keyframes atlas-mobile-search-in { from { clip-path:inset(0 0 0 85%); } to { clip-path:inset(0); } }
  }
}
