/**
 * Standalone main nav for legacy static HTML pages.
 * Matches _MainSiteNav / tailwind look without loading full tailwind (avoids preflight breaking old layouts).
 */
.bat-msn {
  --bat-brand: #e78304;
  --bat-brand-hover: #c96f03;
  --bat-zinc-500: #71717a;
  --bat-zinc-600: #52525b;
  --bat-zinc-700: #3f3f46;
  --bat-zinc-900: #18181b;
  --bat-border: #e4e4e7;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bat-msn * {
  box-sizing: border-box;
}

.bat-msn-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--bat-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.bat-msn-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .bat-msn-inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bat-msn-inner {
    padding: 0 2rem;
  }
}

.bat-msn-row {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bat-msn-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.bat-msn-logo img {
  height: 3.5rem !important;
  max-height: 3.5rem !important;
  width: auto !important;
  max-width: 118px;
  object-fit: contain;
  object-position: left;
  display: block;
}

.bat-msn-links {
  display: none;
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.375;
  color: var(--bat-zinc-600);
}

@media (min-width: 768px) {
  .bat-msn-links {
    display: flex;
  }
}

.bat-msn-links a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

.bat-msn-links a:hover {
  color: var(--bat-brand);
}

.bat-msn-links a.bat-msn-muted {
  color: var(--bat-zinc-500);
}

.bat-msn-links a.bat-msn-muted:hover {
  color: var(--bat-zinc-900);
}

.bat-msn-links a.bat-msn-active,
.bat-msn-links a.bat-msn-muted.bat-msn-active {
  color: var(--bat-brand);
  font-weight: 600;
}

.bat-msn-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .bat-msn-toggle {
    display: none;
  }
}

.bat-msn-toggle button {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--bat-border);
  background: #fff;
  color: var(--bat-zinc-600);
  cursor: pointer;
}

.bat-msn-toggle button:hover {
  background: #fafafa;
}

.bat-msn-panel {
  display: none;
  border-bottom: 1px solid var(--bat-border);
  background: #fff;
}

@media (min-width: 768px) {
  .bat-msn-panel.bat-msn-panel--open {
    display: none;
  }
}

.bat-msn-panel.bat-msn-panel--open {
  display: block;
}

.bat-msn-panel-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.bat-msn-panel-inner a {
  display: block;
  padding: 0.125rem 0;
  text-decoration: none;
  color: var(--bat-zinc-700);
}

.bat-msn-panel-inner a:hover {
  color: var(--bat-brand);
}

.bat-msn-panel-inner a.bat-msn-muted {
  color: var(--bat-zinc-500);
}

.bat-msn-panel-inner a.bat-msn-active,
.bat-msn-panel-inner a.bat-msn-muted.bat-msn-active {
  color: var(--bat-brand);
  font-weight: 600;
}

.bat-msn-panel-inner hr {
  border: 0;
  border-top: 1px solid #f4f4f5;
  margin: 0.75rem 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y pinch-zoom;
}

body {
  min-height: 100%;
}

img,
video,
iframe,
object,
embed {
  max-width: 100%;
}

@media (max-width: 767px) {
  .bat-msn-nav {
    position: sticky;
    top: 0;
  }

  .bat-msn-row {
    height: 4.5rem;
  }

  .bat-msn-logo img {
    height: 3.25rem !important;
    max-height: 3.25rem !important;
  }

  .bat-msn-panel-inner {
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .train-ticket-exchange {
    margin-left: 12px !important;
    margin-right: 12px !important;
    max-width: calc(100% - 24px) !important;
  }

  .train-ticket-exchange a {
    align-items: flex-start !important;
    flex-direction: column;
  }
}
