/* The top bar and side menu for pages outside the home screen (About, Get the app).
   Same look as the home screen's menu. nav.js builds the bar and the menu. */
.cm-top {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  position: sticky; top: 0; z-index: 60; background: rgba(15,52,112,0.94);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}
.cm-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; border: 2px solid #FFB04A; background: transparent;
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
.cm-word { display: block; }
.cm-word img {
  display: block; width: 180px; height: auto; animation: none;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff);
}
.cm-spacer { width: 48px; }
.cm-shade { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 70; }
.cm-shade[hidden] { display: none; }
.cm-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-width: 86vw; z-index: 71; overflow-y: auto;
  padding: 18px 16px; background: linear-gradient(180deg, #17458F, #06183A); border-right: 3px solid #F57C00;
  transform: translateX(-105%); transition: transform 0.25s ease; text-align: left;
  font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 18px; line-height: 1.5; color: #fff;
}
.cm-menu.open { transform: none; }
.cm-menu [hidden] { display: none; }
.cm-menu-word {
  display: block; width: 190px; height: auto; margin: 4px auto 18px; animation: none;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff);
}
/* the orange headings open and close the part of the menu under them */
.cm-fold {
  display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 16px 0 6px; padding: 10px 4px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: bold; letter-spacing: 0.1em; text-transform: uppercase; color: #FFB04A;
}
.cm-fold span { font-size: 20px; transition: transform 0.2s ease; }
.cm-fold[aria-expanded="true"] span { transform: rotate(90deg); }
.cm-menu a {
  display: block; padding: 12px; margin-bottom: 6px; border-radius: 12px;
  background: rgba(255,255,255,0.07); color: #fff; text-decoration: none;
}
.cm-menu small { display: block; color: #DCE6F7; font-size: 16px; }
.cm-menu p { color: #DCE6F7; font-size: 16px; margin: 18px 0 0; }
@media (prefers-reduced-motion: reduce) { .cm-menu { transition: none; } }
