/* The top menu, shared by every page of the site.
 *
 * Each page used to style its own copy, so the menu changed font, colour,
 * width and items from page to page, and the changelog and privacy pages had
 * none (no way back but the browser's).  The markup is now one block, the
 * same on every page (TestSiteMenus holds them equal), and this file is its
 * only styling: the look of the home page.  welcome.html (shown once after
 * install) and admin.html (its own menu for signed-in owners) have none.
 *
 * max-width is the home page's content width (860px container less its 24px
 * side padding), so the menu sits in the same place on pages whose own
 * column is narrower.
 */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 812px;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; }
.brand a {
    font-size: 17px;
    font-weight: 700;
    color: #1A1A2E;
    text-decoration: none;
}
.brand a b { color: #9841F7; }

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
    margin-left: 20px;
    white-space: nowrap;
}
.nav-links a:hover { color: #9841F7; }

/* Five links stop fitting beside the brand below ~690px: drop them to their
   own row instead of wrapping the brand and the links. */
@media (max-width: 720px) {
    .nav { flex-wrap: wrap; gap: 12px; }
    .nav-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
    .nav-links a { margin-left: 0; }
}
