.collection-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 0 0 12px;
  margin-bottom: 13px;
  border-bottom: 1px solid #8b9a9d34;
}
.collection-categories button {
  min-height: 42px;
  padding: 6px 1px;
  color: #a4afb0;
  font-size: 12px;
  background: transparent;
  white-space: nowrap;
}
.collection-categories button span {
  color: #8f9d9e;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.collection-categories button[aria-pressed='true'] { color: #f4f6f5; text-decoration: underline; text-underline-offset: 6px; }
.collection-categories button:focus-visible, .collection-tools input:focus-visible { outline: 2px solid #9dbdc4; outline-offset: 4px; }
.collection-tools nav[hidden], .index-tabs button[hidden] { display: none; }
.collection-tools input { min-height: 42px; font-size: 16px; width: min(290px, 100%); }
.collection-tools label { margin-left: auto; }
.collection-count { font-size: 10px; color: #a0b0b4; }
#collection-message { color: #e3d8c9; margin: 0 0 12px; line-height: 1.65; }
.atlas-card .peak-card-copy h2 { font-size: clamp(20px, 2.5vw, 36px); margin: 0 0 8px; }
.atlas-card .peak-card-copy small { line-height: 1.35; font-family: inherit; font-size: 11px; letter-spacing: .09em; display: block; margin-bottom: 7px; }
.atlas-card .peak-card-copy p { font-size: 12px; margin: 0; line-height: 1.6; }
.atlas-card .peak-card-copy > span { min-height: 15px; }
.peak-card.brand-logo-card { display: grid; grid-template-rows: auto 1fr; aspect-ratio: auto; background: #151c20; }
.brand-cover { display: grid; place-items: center; aspect-ratio: 1.95; background: #181b1e; }
.brand-cover[data-tone='light'] { background: #f5f5f2; }
.brand-cover img, .brand-logo-card .brand-cover img {
  display: block;
  width: 72%;
  height: 62%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  filter: none;
}
.atlas-card-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 14px;
  padding: 16px 20px 18px;
}
.atlas-card-copy h2 { margin: 0; font-size: clamp(19px, 2vw, 27px); font-weight: 400; }
.atlas-card-copy p { margin: 0; color: #bfc6c5; font-size: 12px; line-height: 1.6; }
.atlas-card-copy > span { color: #a0b0b4; font-size: 10px; white-space: nowrap; }
.atlas-card-copy i { color: #d7dfde; font-style: normal; justify-self: end; }
.peak-card.atlas-text-card { display:grid; align-items:end; background:linear-gradient(145deg,#273035,#14191c 65%); }
.atlas-guide-logo { margin: 0 0 23px; }
.atlas-guide-logo .brand-cover { max-width: 420px; }
.atlas-guide-logo figcaption { margin-top: 7px; font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
  .brand-logo-card .brand-cover img { transform: none; }
}
.atlas-reading { margin-top: 18px; padding-top: 14px; border-top: 1px solid #889a9d4d; }
.atlas-reading h3 { font-size: 11px; font-weight: 600; margin: 0 0 6px; letter-spacing: .05em; }
.atlas-reading p { margin: 0; line-height: 1.85; font-size: 13px; }
.atlas-guide h3 { margin-bottom: 20px; font-size: 18px; }
.brand-founding {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 0 0 18px;
  padding-block: 13px;
  border-block: 1px solid #889a9d4d;
}
.brand-founding dt { color: var(--detail-muted, #b6c4c6); font-size: 11px; }
.brand-founding dd { margin: 3px 0 0; color: var(--detail-copy, #eee); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.brand-story { margin: 25px 0; }
.brand-chapter { padding-block: 16px; border-top: 1px solid #889a9d4d; }
#credits-content .brand-chapter h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.brand-chapter p { margin: 0 0 6px; }
.brand-chapter button { min-height: 44px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
#scene-founding { margin: 8px auto 0; color: #d3dddd; font-size: clamp(11px, 1vw, 14px); line-height: 1.5; }
#scene-founding:not([hidden]) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.atlas-related { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.atlas-related a { display: inline-flex; align-items: center; min-height: 42px; }
[data-topic] .selected-heading #scene-date { font-size: clamp(18px, 4vw, 52px); }
[data-topic] .utilities #topic-guide-open { padding-inline: 2px; }
[data-topic] .detail-copy p { line-height: 1.85; }
@media(max-width: 600px) {
  .collection-categories { gap: 0 14px; margin-bottom: 12px; }
  .collection-categories button { font-size: 11px; }
  .collection-tools input { width: 100%; }
  .atlas-card .peak-card-copy h2 { font-size: 26px; }
  [data-topic] .atlas-reading p { font-size: 13px; }
  .brand-founding { grid-template-columns: 1fr; }
}

.atlas-guide-photo { margin: 16px 0 23px; }
.atlas-guide-photo img { display:block; width:100%; max-height:42svh; object-fit:contain; }
.museum-card-media .atlas-text-exhibit {
  position: relative;
  width: 100%;
  height: 100%;
  background: #191e21;
  color: #eeeae1;
  font: 400 clamp(10px, 1.45vw, 20px)/1.7 var(--museum-font-sans);
}
.atlas-text-exhibit > span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow-wrap: anywhere;
}
.atlas-text-exhibit > span:first-child { width: calc(var(--gallery-side-width) - 2.3em); }
.atlas-text-exhibit > span:last-child {
  width: min(24em, calc(var(--gallery-selected-width) - 2.3em));
  font-size: clamp(15px, 1.75vw, 25px);
}
.detail-layout.atlas-text-detail { display: flex; align-items: center; justify-content: center; }
.atlas-text-detail .detail-body { width: min(100%, 39rem); }
[data-topic] .detail-body .atlas-image-note { color: var(--detail-muted); font-size:11px; margin-top:9px; }
.detail-visual.atlas-paired { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 10px; }
.atlas-paired figure { min-width: 0; margin: 0; }
.atlas-paired img { display: block; width: 100%; max-height: 50svh; object-fit: contain; }
.atlas-paired figcaption { margin-top: 8px; font-size: 11px; line-height: 1.6; text-align: center; color: var(--detail-copy); }
.atlas-pair-secondary, .atlas-paired figcaption { transition: opacity 180ms ease; }
.exhibit-dialog[data-photo-motion] .atlas-pair-secondary,
.exhibit-dialog[data-photo-motion] .atlas-paired figcaption { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .atlas-pair-secondary, .atlas-paired figcaption { transition: none; }
}
.ambient img:not([src]), .detail-ambient img:not([src]) { visibility: hidden; }

.event-card .history-text-thumb {
  display: grid;
  place-items: center;
  padding: .25rem;
  background: #1d2327;
  color: #e4e6e6;
  font-size: .6rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.museum-card-media:has(.visible-image-credit), .detail-visual:has(.visible-image-credit) {
  position: relative;
}
img[data-photo-fit="contain"],
img.detail-image[src$="/hoshiyama-lake-tanuki-avalanche-2006.jpg"] {
  object-fit: contain !important;
  filter: none !important;
}
.ambient img[src$="/hoshiyama-lake-tanuki-avalanche-2006.jpg"],
.detail-ambient img[src$="/hoshiyama-lake-tanuki-avalanche-2006.jpg"] {
  visibility: hidden;
}
.visible-image-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: .25em .45em;
  background: #000c;
  color: #fff;
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.4;
  pointer-events: none;
}

.museum-language {
  max-width: 8.5rem;
  padding: .25rem .35rem;
  background: #131617;
  border: 1px solid #ffffff30;
  border-radius: .2rem;
  color: inherit;
  font: inherit;
  font-size: clamp(.68rem, 1vw, .8rem);
}
.museum-language:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: .15rem;
}
.locale-preview-note { color: #9ca6a7; font-size: .8rem; }
@media (max-width: 480px) {
  .museum-language { max-width: 5.8rem; }
}

#collection-dialog .museum-language {
  color-scheme: light;
  color: #181818;
  background: #fff;
  border-color: #ccc;
}
