/* Shared product shell. Keep the existing MotoAtlas typefaces and red;
   route and member content stays separate from the application information page. */
body.route-surface {
  --bg: #0d0c0e;
  --fg: #f6f2f1;
  --card: #191618;
  --border: #393033;
  --muted: #252023;
  --muted-fg: #bdb1b5;
  --secondary: #252023;
  --secondary-fg: #d4c6ca;
  --primary: #ef6259;
  --primary-bright: #ef6259;
  --accent: #ef6259;
  color-scheme: dark;
  background: var(--bg);
  color: var(--fg);
}
.route-header {
  --fg: #f6f2f1;
  --card: #131113;
  --border: #393033;
  --muted: #282023;
  --muted-fg: #c5b9bd;
  --primary: #ef6259;
  background: var(--card);
  color: var(--fg);
  color-scheme: dark;
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.route-header .wrap {
  max-width: 1440px;
  padding: 0 32px;
  min-height: 72px;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
}
.route-header .brand { gap: 9px; color: var(--fg); }
.route-header .brand img { border: 0; border-radius: 8px; }
.route-header .brand-word { width: 133px; height: 19px; }
.route-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin-inline: auto; }
.route-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted-fg);
  text-decoration: none;
  white-space: nowrap;
}
.route-nav a:hover, .route-nav a[aria-current="page"] { color: var(--primary); }
.route-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--primary); }
.route-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 16px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.route-account:hover { background: var(--muted); }
.route-header .route-mobile-menu { display: none; position: relative; flex-shrink: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.route-mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.route-mobile-menu summary::-webkit-details-marker { display: none; }
.route-mobile-menu summary::after { display: none; }
.route-mobile-menu[open] summary { background: var(--muted); }
.route-mobile-menu nav {
  position: absolute;
  z-index: 60;
  right: 0;
  top: calc(100% + 12px);
  width: min(280px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 12px 40px #0006;
}
.route-mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
}
.route-mobile-menu nav a:hover, .route-mobile-menu nav a[aria-current="page"] { background: var(--muted); }
.route-surface :focus-visible, .route-header :focus-visible { outline: 2px solid #c41e1a; outline-offset: 3px; }
.route-surface .btn-primary { color: #fff; background: #c72b24; border-color: #c72b24; }
.route-surface .btn-primary:hover { background: #ac231e; border-color: #ac231e; }
.route-surface .btn-ghost:hover { background: var(--muted); }
.route-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted-fg); }
.route-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.route-footer a { color: inherit; }
@media (max-width: 1120px) {
  .route-header .route-nav { gap: 18px; }
  .route-header .wrap { gap: 18px; padding-inline: 24px; }
  .community-explore .route-header .route-nav { display: none; }
  .community-explore .route-header .route-mobile-menu { display: block; }
  .community-explore .route-header #map-header-switch { margin-left: auto; }
}
@media (max-width: 800px) {
  .route-header .route-nav { display: none; }
  .route-header .route-mobile-menu { display: block; }
  .route-header .route-account { margin-left: auto; }
  .route-header .wrap { min-height: 64px; padding: 0 16px; gap: 12px; }
  .route-header .brand-word { width: 119px; height: 17px; }
  .route-footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 380px) {
  .route-header .brand-word { width: 105px; height: 15px; }
  .route-header .route-account { padding: 8px 12px; font-size: 12px; gap: 8px; }
}
@media (max-width: 480px) {
  .route-header .route-account { display: none; }
  .route-header .route-mobile-menu { margin-left: auto; }
}
@media (max-width: 360px) {
  .route-surface.community-explore .community-view-switch svg { display: none; }
}
