/* Shared reflow rules: keep controls and labels intact at narrow/zoomed sizes. */
/* Reduced-motion duration resets must not create a font-size transition on html. */
html { transition-property: none !important; }
.passport-page .passport-tabs__nav {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  overflow: visible;
  gap: .5rem;
  padding: .65rem;
}
.passport-page .passport-tabs__nav button {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  min-width: 0;
  min-height: 48px;
  height: auto;
  padding: .75rem;
  gap: .4rem;
  font-size: .85rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.passport-page .passport-tabs__nav button > span {
  position: static;
  margin: 0;
  min-width: 1.5em;
  min-height: 1.5em;
  height: auto;
  flex: 0 0 auto;
  padding: .1em .25em;
}
.passport-page :is(.passport-panel__heading,.passport-section-title,.passport-profile__actions,.passport-book__topline) { flex-wrap: wrap; }
.passport-page :is(.passport-panel__heading,.passport-section-title) > div { min-width: 0; }
.passport-page :is(.passport-route,.passport-stamp,.passport-badge,.passport-level,.passport-history article,.passport-trail__steps li) { min-width: 0; }
.passport-page :is(.passport-route,.passport-stamp,.passport-badge,.passport-level,.passport-history article,.passport-trail__steps li) > :is(span,div) { min-width: 0; }
.passport-page :is(.passport-stamp,.passport-trail,.passport-route,.passport-badge,.passport-profile) :is(p,strong,em,summary,h2,h3) { overflow-wrap: anywhere; }
.passport-page .passport-quick-stats { grid-template-columns: repeat(auto-fit,minmax(min(100%,7rem),1fr)); }
.passport-page .passport-quick-stats dt { flex-wrap: wrap; line-height: 1.4; }
.passport-page :is(.passport-primary-action,.passport-secondary-action) { min-width: 0; min-height: 44px; height: auto; white-space: normal; text-align: center; line-height: 1.4; }
.passport-page .passport-level__ring { flex-shrink: 0; }
.gallery-disclosure-nav {
  max-height: max(44px,calc(var(--visit-viewport-height,100dvh) - var(--mobile-nav-top,8rem) - env(safe-area-inset-bottom) - .75rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: .75rem;
}
.gallery-disclosure-nav a { display: block; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
html body [data-menu-toggle] { min-width: 44px; min-height: 44px; }
header.gallery-header-compact .gallery-desktop-nav { display: none !important; }
header.gallery-header-compact .gallery-menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
header.gallery-header-compact .gallery-disclosure-nav:not([hidden]) { display: grid !important; grid-template-columns: minmax(0,1fr); }
.nazare-room-header .brand { min-width: 0; flex-shrink: 1; }
.nazare-room-header .brand > span { min-width: 0; }
/* Keep the gallery identity visible when the room navigation collapses. */
:is(.nina-room-header, .solano-room-header, .miranda-room-header) [class$="-brand__text"],
.nazare-room-header .brand > span { display: block; }
:is(.nina-room-header, .solano-room-header) [class$="-brand__text"] strong { line-height: 1.05; }
.passport-header nav { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.passport-header .passport-header__link { display: inline-flex; }
.biography-essay .biography-essay__quote { margin-inline: clamp(-4rem, calc((47rem - 100vw + 6rem) / 2), 0px); }
@media(max-width:600px) {
  :is(.nina-room-header, .solano-room-header) .brand-button { gap: .5rem; padding-inline: 0; }
  :is(.nina-room-header, .solano-room-header) [class$="-brand__mark"] { flex: none; width: 2.5rem; height: 2.5rem; object-fit: contain; }
  :is(.nina-room-header, .solano-room-header) [class$="-brand__text"] small { font-size: .6rem; letter-spacing: .06em; }
  :is(.nina-room-header, .solano-room-header) [class$="-brand__text"] strong { font-size: .95rem; }
  .nazare-room-header .brand > span { max-width: 10rem; }
}
@media(max-width:720px) {
  .passport-header > div { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
  .passport-header .gallery-wordmark { flex: 0 0 44px; min-width: 0; padding-inline: 0; }
  .passport-header .gallery-wordmark img { width: 44px; height: 44px; object-fit: contain; }
  .passport-header nav { display: grid; flex: 1; grid-template-columns: repeat(auto-fit,minmax(min(100%,6rem),1fr)); gap: 8px; }
  .passport-header nav > a { min-width: 0; padding-inline: .5rem; white-space: normal; text-align: center; }
  .passport-header nav > form { grid-column: -2 / -1; justify-self: end; }
}
.nickname-format-hint { display: block; margin-top: .4rem; font-size: .85rem; line-height: 1.5; font-weight: 400; color: inherit; }
body.gallery-menu-open :is(.accessibility-tools,.public-user-area--floating,.visit-index,.visit-audio) { visibility: hidden; pointer-events: none; }

@media (min-width:1280px) { .solano-room-mobile-menu { display: none; } }
@media (max-width:1023px), (max-height:640px), (pointer:coarse) {
  html body .accessibility-tools { inset: auto auto calc(12px + env(safe-area-inset-bottom)) 12px !important; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; }
  html body .accessibility-fab { width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important; border-radius:12px !important; }
  html body .public-user-area--floating.public-user-area--passport-cover { right:12px !important; bottom:calc(12px + env(safe-area-inset-bottom)) !important; width:44px !important; min-width:44px !important; height:54px !important; min-height:54px !important; }
  html body.solano-room-page .solano-station { position:static !important; margin:0 !important; transform:none !important; }
  html body.solano-room-page .solano-station__disc { width:44px; height:44px; min-width:44px; min-height:44px; }
  html body .visit-index { position:fixed; display:block; z-index:1100; left:50%; bottom:calc(12px + env(safe-area-inset-bottom)); transform:translateX(-50%); }
  html body.solano-room-page .visit-index { left:calc(50% + 16px); }
  html body .visit-index > summary { display:flex; align-items:center; justify-content:center; width:120px; min-height:44px; padding:8px; border:1px solid var(--utility-accent); border-radius:12px; background:var(--utility-paper); color:var(--utility-accent); font:600 14px/1.35 var(--utility-sans); }
  html body .visit-index > .memory-quick-nav { position:absolute !important; inset:auto auto calc(100% + 12px) 50% !important; width:calc(100vw - 32px) !important; max-height:calc(var(--visit-viewport-height,100dvh) - 180px); overflow-y:auto !important; padding:0 !important; margin:0 !important; transform:translateX(-50%) !important; pointer-events:auto !important; }
  html body.solano-room-page .visit-index > .memory-quick-nav { margin-left:-16px !important; }
  html body .visit-index:not([open]) > .memory-quick-nav { display:none !important; }
  html body .visit-index .memory-quick-nav__inner { display:flex !important; flex-direction:column !important; width:100% !important; gap:4px !important; padding:8px !important; border-radius:12px !important; background:var(--utility-paper) !important; }
  html body .visit-index .memory-quick-nav__link { display:flex !important; width:100% !important; min-width:0 !important; min-height:44px !important; height:auto !important; padding:12px !important; color:var(--utility-accent) !important; font:600 .95rem/1.4 var(--utility-sans) !important; text-align:left !important; white-space:normal !important; overflow-wrap:anywhere; }
  html body .visit-index .memory-quick-nav__link::before, html body .visit-index .memory-quick-nav__link::after { content:none !important; display:none !important; }
  html body .visit-index .memory-quick-nav__link[aria-current=true] { color:var(--utility-paper) !important; background:var(--utility-accent) !important; }
  html body .accessibility-panel, html body.solano-room-page .solano-station__panel { position:absolute !important; top:auto !important; bottom:calc(100% + 16px) !important; left:0 !important; width:calc(100vw - 24px) !important; max-width:480px !important; max-height:calc(var(--visit-viewport-height,100dvh) - 120px) !important; overflow-y:auto !important; overscroll-behavior:contain; }
  html body.solano-room-page .solano-station__panel { max-height: min(var(--station-panel-available-height, calc(100dvh - 240px)), calc(var(--visit-viewport-height,100dvh) - 120px)) !important; }
  html body.banho-page .visit-index { right:67px; left:auto; transform:none; }
  html body.banho-page .visit-index > summary { width:112px; }
  html body.banho-page .visit-index > .memory-quick-nav { inset:auto -55px calc(100% + 12px) auto !important; transform:none !important; }
  html body.banho-page .visit-audio { left:64px; bottom:calc(12px + env(safe-area-inset-bottom)); transform:none; }
  html body.banho-page .visit-audio > summary { width:75px; min-height:44px; }
  html body.visit-is-editing :is(.visit-index,.visit-audio,.accessibility-tools,.public-user-area--floating) { visibility:hidden; pointer-events:none; }
}
