/* Keep the document within the viewport without blocking gallery or reader gestures. */
[data-copy-hidden="true"]{display:none!important}
html,body{width:100%;max-width:100%;min-width:0;overflow-x:hidden;overscroll-behavior-x:none}
@supports(overflow:clip){html,body{overflow-x:clip}}
main,.site-main,.header,.site-header,.footer,.site-footer{min-width:0;max-width:100%}
img,video{max-width:100%}
@media(max-width:680px){
 .header-inner{min-width:0}
 .brand{min-width:0;flex-shrink:1}
 .brand span{min-width:0}
 .brand strong,.brand small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .header-actions{flex:0 0 auto;gap:6px}
 .ambient-panel{position:absolute;top:auto;right:auto;left:0;bottom:calc(100% + 10px);width:min(260px,calc(100vw - 32px))}
 .wrap{max-width:calc(100% - 32px)}
 .people-grid>*,.edition-grid>*,.gallery-grid>*{min-width:0}
}

/* A solid base covers the bottom safe area while preserving the floating dock. */
@media(max-width:1000px){
 .mobile-dock{bottom:calc(6px + env(safe-area-inset-bottom,0px));isolation:isolate}
 .mobile-dock::before{
  content:'';position:absolute;z-index:-1;left:50%;transform:translateX(-50%);
  width:100vw;bottom:calc(0px - 6px - env(safe-area-inset-bottom,0px));
  height:calc(100% + 14px + env(safe-area-inset-bottom,0px));
  background:#fff;box-shadow:0 -5px 22px rgba(3,23,52,.08);pointer-events:auto;
 }
 .footer{padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))}
 html{scroll-padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))}
 body.dock-input-active .mobile-dock{display:none!important}
}
@media(max-width:1000px) and (hover:hover) and (pointer:fine){
 .footer{padding-bottom:0}
 html{scroll-padding-bottom:0}
}
/* Dual institutional identity in the normal header flow. */
.header .header-inner{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto 88px;
  align-items:center;column-gap:clamp(8px,1vw,16px);
  min-height:99px;height:auto;padding-block:10px;
}
.header .brand{min-width:0;max-width:100%;gap:10px;justify-self:start}
.header .brand span{display:flex;min-width:0}
.header .desktop-nav{min-width:0;margin-left:0;gap:2px}
.header .desktop-nav a{padding-inline:clamp(6px,.65vw,11px);white-space:nowrap}
.header .header-actions{min-width:0;margin-left:0;gap:8px;justify-self:end}
.header .header-city-mark{
  display:flex;align-items:center;justify-content:center;justify-self:end;
  position:static;grid-column:4;width:88px;height:76px;min-width:0;
  padding:4px 0 4px 6px;box-sizing:border-box;line-height:0;
}
.header .header-city-mark img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:1270px){
  .header .header-inner{grid-template-columns:minmax(0,1fr) auto 76px;column-gap:12px}
  .header .desktop-nav{display:none}
  .header .menu-button{display:flex}
  .header .header-city-mark{grid-column:3;width:76px;height:68px}
}
@media(max-width:680px){
  .header .header-inner{grid-template-columns:minmax(0,1fr) auto 66px;column-gap:8px;min-height:78px;padding-block:8px}
  .header .brand{gap:7px}
  .header .brand img{width:44px;height:44px;flex:none}
  .header .brand strong,.header .brand small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.18;letter-spacing:.06em}
  .header .brand strong{font-size:clamp(8px,2vw,11px)}
  .header .brand small{font-size:clamp(7px,1.7vw,8px)}
  .header .header-actions{gap:6px}
  .header .header-city-mark{width:66px;height:60px;padding-left:4px}
}
@media(max-width:370px){
  .header .header-inner{grid-template-columns:minmax(0,1fr) auto 54px;column-gap:6px}
  .header .brand img{width:39px;height:39px}
  .header .header-search,.header .menu-button{width:42px;height:42px;min-width:42px}
  .header .header-city-mark{width:54px;height:52px}
}
.catalog-fallback-notice{background:#fff6dc;color:#5e470b;border-bottom:1px solid #ead7a2;font:600 14px/1.5 Nimbus,Arial,sans-serif}.catalog-fallback-notice[hidden]{display:none}.catalog-fallback-notice>.wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;padding-bottom:12px}.catalog-fallback-notice button{flex:none;padding:8px 16px;border:1px solid #b89b4c;border-radius:999px;background:#fff;color:#523e0b;font:700 13px Nimbus,Arial,sans-serif;cursor:pointer}.catalog-fallback-notice button:hover{background:#f4c430;color:#111}.catalog-fallback-notice button:focus-visible{outline:3px solid #102f59;outline-offset:2px}@media(max-width:560px){.catalog-fallback-notice>.wrap{align-items:flex-start;flex-direction:column;gap:8px}}
