/* Shared public-page header. Geometry follows the exhibition index. */
.museum-topbar {
  --museum-home-from: #29a8d3;
  --museum-home-to: #1469c8;
  --museum-home-shadow: rgba(20,105,200,.18);
  --museum-home-text-shadow: rgba(18,79,126,.2);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(620px, 100%);
  height: 66px;
  min-height: 66px;
  margin: 0 auto;
  padding: 22px 16px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #173247;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}
.museum-topbar *, .museum-topbar *::before, .museum-topbar *::after { box-sizing: border-box; }
.museum-topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #173247;
  text-decoration: none;
}
.museum-topbar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(36,90,134,.1);
}
.museum-topbar__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.museum-topbar__copy { display: block; min-width: 0; }
.museum-topbar__copy b {
  display: block;
  overflow: hidden;
  color: #173247;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.museum-topbar__copy > span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #718798;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.museum-topbar__home {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--museum-home-from), var(--museum-home-to));
  color: #fff;
  font-size: 11.5px;
  font-weight: 950;
  line-height: normal;
  letter-spacing: normal;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 1px 1px 0 var(--museum-home-text-shadow);
  box-shadow: 0 9px 18px var(--museum-home-shadow);
}
/* Retain the exhibition's 32px silhouette with a 44px touch area. */
.museum-topbar__home::after { content: ""; position: absolute; inset: -6px 0; }
.museum-topbar a:focus-visible { outline: 2px solid #287ead; outline-offset: 4px; }
.museum-topbar--courses {
  --museum-home-from: #f07828;
  --museum-home-to: #d85a1f;
  --museum-home-shadow: rgba(216,90,31,.18);
  --museum-home-text-shadow: rgba(122,58,0,.24);
}
.museum-topbar--diary {
  --museum-home-from: #9a83d2;
  --museum-home-to: #7256b1;
  --museum-home-shadow: rgba(114,86,177,.2);
  --museum-home-text-shadow: rgba(72,48,118,.22);
}
@media (max-width: 420px) {
  .museum-topbar { height: 60px; min-height: 60px; padding: 18px 16px 6px; }
}
