/* The top bar shared by every Plazza page (templates/b/_topbar.html).  It carries its own
   colors so the calendar pages, which have a different stylesheet, show it the same way;
   b.css points them at the list pages' colors (and their dark mode).
   Written 2026-12-04 by Claude (Claude Code desktop app, Fable 5.2) for David Thomson.
   Session 8987e058-2a6f-49bf-8723-f37a1e889e12. */
.top { --pz-bg: #faf7f2; --pz-card: #ffffff; --pz-ink: #1f2430; --pz-soft: #5d6577; --pz-line: #e6e0d6;
       --pz-accent: #b4532a; --pz-accent-ink: #ffffff;
       position: sticky; top: 0; z-index: 50; background: var(--pz-bg); border-bottom: 1px solid var(--pz-line);
       font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--pz-ink); text-align: left; }
.top *, .top *::before, .top *::after { box-sizing: border-box; }
.top .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top .top-row { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.top .brandbar { display: flex; align-items: stretch; border: 1px solid var(--pz-line); border-radius: 999px;
                 background: var(--pz-card); overflow: hidden; white-space: nowrap; }
.top .brand { display: flex; align-items: center; gap: 7px; padding: 3px 12px 3px 4px; font-weight: 700; font-size: 19px;
              color: var(--pz-ink); text-decoration: none; }
.top .brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
                   background: var(--pz-accent); color: var(--pz-accent-ink); font-size: 17px; }
.top .view { display: flex; align-items: center; padding: 0 13px; border-left: 1px solid var(--pz-line);
             font-weight: 600; font-size: 14px; color: var(--pz-ink); text-decoration: none; }
.top .view:hover { background: var(--pz-line); }
.top .view.on { background: var(--pz-accent); color: var(--pz-accent-ink); }
.top .search { flex: 1 1 200px; display: flex; min-width: 0; margin: 0; }
.top .search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--pz-line); border-right: 0;
                     border-radius: 10px 0 0 10px; background: var(--pz-card); color: var(--pz-ink); font: inherit; margin: 0; }
.top .search button { padding: 9px 14px; border: 1px solid var(--pz-accent); border-radius: 0 10px 10px 0;
                      background: var(--pz-accent); color: var(--pz-accent-ink); font: inherit; cursor: pointer; margin: 0; }
.top .top-nav { display: flex; gap: 14px; font-size: 15px; }
.top .top-nav a { color: var(--pz-soft); text-decoration: none; white-space: nowrap; font-weight: 400; }
.top .top-nav a:hover { color: var(--pz-ink); }
.top #saved-count { color: var(--pz-accent); font-weight: 700; }
@media (max-width: 640px) {
  .top .top-nav { width: 100%; flex-wrap: wrap; gap: 4px 14px; font-size: 14.5px; }
  .top .search { flex-basis: 150px; }
}
.top .top-nav a.here { color: var(--pz-ink); font-weight: 600; box-shadow: 0 2px 0 var(--pz-accent); }
