* { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: #000;
  font: 13px/1.4 Arial, Helvetica, Geneva, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { display: block; border: 0; }

/* Links to the 1999 gm.com site no longer exist: shown, but inert. */
a.dead { cursor: not-allowed; color: inherit; text-decoration: none; }

/* ----- header ----- */
.brands { display: flex; justify-content: space-around; flex-wrap: wrap; padding: 4px 8px; background: #fff; }
.brands a {
  font: bold 10px/38px Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  color: #102973; min-width: 50px; text-align: center;
}
.topbar { display: flex; }
.gmlogo { background: #102973; width: 32px; flex: none; }
.topbar-main { flex: 1; min-width: 0; }
.topnav-row { display: flex; align-items: stretch; }
.topnav { background: #000; flex: none; }
.topnav-right {
  flex: 1; display: flex; justify-content: flex-end; align-items: center;
  border-top: 1px solid #000; border-bottom: 1px solid #000;
}
.subnav-row { display: flex; }
.subnav { background: #A7B0C5; display: flex; flex-wrap: wrap; align-items: center; padding: 0 4px; }
.subnav a { font-size: 10px; font-weight: bold; color: #000; margin: 0 6px; line-height: 15px; white-space: nowrap; }
.subnav a:hover { color: #333366; }
.subnav-row > img { background: #A7B0C5; }
.crumbs { display: flex; align-items: flex-end; flex-wrap: wrap; border-top: 1px solid #000; padding-left: 2px; }
.crumbs a, .crumbs .here { font: 8pt/15px "Helvetica Narrow", Arial, sans-serif; color: #000; padding: 0 2px 0 4px; white-space: nowrap; border-bottom: 1px solid #000; }
.crumbs a:hover { color: #666699; }

/* ----- body ----- */
.gm-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 20px 8px 8px; }
.titlebar { display: flex; align-items: center; width: 100%; max-width: 1100px; }
.titlebar .rule { height: 1px; background: #000; width: 15px; flex: none; }
.titlebar .rule:first-child { flex: 1; }
.titlebar .rule.grow { flex: 4; }
.titlebar .rule:last-child { flex: 1; }
.titlebar .co { background: #fff; }

.exhibit { width: 400px; max-width: 100%; margin-top: 14px; }
.exhibit.large { width: min(1000px, 96vw); }
.exhibit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 13px; }
.world-pick { font-size: 11px; }
.view {
  width: 100%; aspect-ratio: 400 / 250; background: #b3cce6; border: 1px solid #000; overflow: hidden;
}
.exhibit.large .view { max-height: calc(100vh - 160px); }
.status { font-size: 11px; color: #666699; min-height: 1.4em; margin-top: 2px; }

/* The Cosmo-style dashboard, toned to the GM page */
.view .vrml-dash { font-size: 10px; }

.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 6px; }
.controls button {
  font: inherit; font-size: 11px; font-weight: bold; color: #fff; background: #102973;
  border: 1px solid #000; padding: 3px 10px; cursor: pointer;
}
.controls button:hover { background: #333366; }
.controls label { font-size: 11px; display: flex; gap: 4px; align-items: center; }
.vp-name { min-width: 190px; text-align: center; color: #102973; font-weight: bold; }
.stops { columns: 3 160px; font-size: 11px; margin: 10px 0; padding-left: 28px; }
.stops li { cursor: pointer; color: #666699; }
.stops li:hover { color: #000; text-decoration: underline; }
.stops li.current { color: #000; font-weight: bold; }
.help { font-size: 11px; }
.help summary { cursor: pointer; color: #102973; font-weight: bold; }
kbd { border: 1px solid #A7B0C5; border-radius: 3px; padding: 0 3px; font-size: 10px; background: #f1f2f7; }

/* ----- footer ----- */
.gm-footer { display: flex; align-items: stretch; margin-top: 16px; }
.foot-left { flex: none; }
.newsflash { display: flex; align-items: center; }
.newsflash-label {
  width: 66px; height: 18px; font: bold 9px/18px Arial, sans-serif; color: #fff; background: #102973; text-align: center;
}
.footnav { background: #000; padding-left: 15px; }
.foot-right {
  flex: 1; background: #000; margin-top: 6px; display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 32px;
}
.foot-right select { font-size: 11px; }
.credit { font-size: 11px; color: #666; text-align: center; margin: 8px 12px 16px; }
