/* History uses the same warm, floating Royal navigation as the main site. */
.topbar {
  width: min(calc(100% - 32px), 1200px);
  margin: 12px auto 0;
  border: 1px solid #dfd8ca;
  border-radius: 12px;
  background: rgba(251,248,240,.97);
  color: #000830;
  box-shadow: 0 8px 24px rgba(0,8,48,.07);
}
.topbar-inner { width: 100%; min-height: 76px; padding: 8px 16px; gap: 20px; }
.topbar .brand { gap: 12px; letter-spacing: 0; font-size: 14px; line-height: 20px; }
.topbar .brand-logo { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #e5ddd0; border-radius: 50%; background: #fff; flex: none; }
.topbar .brand img { width: 54px; height: 54px; border: 0; border-radius: 50%; padding: 3px; background: #fff; }
.topbar .brand strong { display: block; font: 700 14px/20px Manrope,sans-serif; letter-spacing: 0; }
.topbar .brand small { margin: 0; color: #5b6071; font: 400 12px/16px Manrope,sans-serif; letter-spacing: .04em; }
.topbar nav a { color: #000830; }
.topbar nav a:hover,.topbar nav a[aria-current="location"] { color: #a95822; }
.topbar .back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #ded8cc; border-radius: 8px; background: #fff; font: 600 14px/20px Manrope,sans-serif; }
.topbar .back:hover { background: #f3eee3; color: #000830; }
.history-menu { display: none; }
.topbar a:focus-visible,.history-menu summary:focus-visible { outline: 3px solid #a95822; outline-offset: 3px; }
@media(max-width:800px) {
  .topbar-inner { min-height: 64px; padding: 6px 12px; }
  .topbar-inner > nav,.topbar .back { display: none!important; }
  .history-menu { display: block; margin-left: auto; }
  .history-menu summary { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid #dfd8ca; border-radius: 8px; cursor: pointer; list-style: none; }
  .history-menu summary::-webkit-details-marker { display: none; }
  .history-menu summary i { display: block; width: 20px; height: 2px; background: #000830; transition: transform .3s cubic-bezier(.22,1,.36,1); }
  .history-menu[open] summary i:first-child { transform: translateY(4px) rotate(45deg); }
  .history-menu[open] summary i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .history-menu nav { display: grid!important; position: absolute; top: calc(100% + 8px); left: 0; right: 0; gap: 0; padding: 8px; border: 1px solid #dfd8ca; border-radius: 12px; background: rgba(251,248,240,.98); box-shadow: 0 8px 24px rgba(0,8,48,.12); backdrop-filter: blur(12px); }
  .history-menu nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 16px; border-radius: 8px; font: 600 14px/20px Manrope,sans-serif; }
  .history-menu nav a:hover { background: #f3eee3; }
}
@media(max-width:560px) {
  .topbar { width: calc(100% - 16px); margin-top: 8px; }
  .topbar .brand-logo { width: 50px; height: 50px; }
  .topbar .brand img { width: 46px; height: 46px; }
  .topbar .brand { font-size: 14px; }
}
@media(prefers-reduced-motion:reduce) { .history-menu summary i { transition: none; } }

/* Match the current Royal main navigation: quiet warm surface and logo scale. */
.topbar { border: 0; background: rgba(251,248,240,.96); box-shadow: 0 4px 16px rgba(0,8,48,.04); }
.topbar-inner { min-height: 84px; }
.topbar .brand-logo { width: 70px; height: 70px; border: 0; }
.topbar .brand img { width: 100%; height: 100%; padding: 6px; }
.topbar .brand strong { font-weight: 700; }
.topbar nav a { font: 600 14px/20px Manrope,sans-serif; }
.topbar .back { background: transparent; }
@media (max-width: 800px) {
  .topbar-inner { min-height: 64px; }
  .topbar .brand-logo { width: 55px; height: 55px; }
}
@media (max-width: 560px) {
  .topbar .brand-logo { width: 48px; height: 48px; }
  .topbar .brand img { padding: 4px; }
}
