/*
 * Site header (replaces Site.Master's NavBarMaster). Everything is scoped to
 * #NavBarMaster and sets its own font, weight and colours, because
 * R2default.css styles every <a> and sets body text to weight 900.
 */
#NavBarMaster.r2h {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  height: 52px; box-sizing: border-box; padding: 0 12px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid transparent; border-bottom-color: #e3e6ea;
  font: 400 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2330;
  transition: width .26s ease, height .26s ease, top .26s ease, left .26s ease, padding .26s ease,
    border-radius .26s ease, box-shadow .26s ease, border-color .26s ease;
}
#NavBarMaster.r2h * { box-sizing: border-box; }
/* The r2 logo is the menu button (2026-09-27; it replaced the hamburger). */
#NavBarMaster .r2h-logo {
  flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: none; cursor: pointer; display: grid; place-items: center; line-height: 0;
}
#NavBarMaster .r2h-logo img { height: 34px; width: auto; display: block; }
#NavBarMaster .r2h-logo:hover, #NavBarMaster .r2h-logo[aria-expanded="true"] { background: #e8ecfa; border-color: #d5dbf3; }

/* Home, right of the logo on every page. */
#NavBarMaster a.r2h-home {
  flex: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e3e6ea; background: #f4f5f7;
  display: grid; place-items: center; color: #344054; text-decoration: none;
}
#NavBarMaster a.r2h-home svg { width: 19px; height: 19px; display: block; }
#NavBarMaster a.r2h-home:hover { background: #e8ecfa; border-color: #d5dbf3; color: #000D5B; text-decoration: none; }

/* Everything right of the logo: fades out when the bar collapses. */
#NavBarMaster .r2h-rest {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; overflow: hidden;
  transition: opacity .18s ease .06s;
}

/*
 * Collapsed (header.js adds r2h-collapsed once the page has scrolled): only the
 * logo shows, in a small floating box. Hovering it brings the bar back, with a
 * shadow (r2h-peek) so it stands off the page underneath.
 */
#NavBarMaster.r2h.r2h-collapsed {
  top: 8px; left: 8px; width: 46px; height: 46px; padding: 0 3px;
  border-color: #e3e6ea; border-radius: 12px; box-shadow: 0 6px 18px rgba(16,24,40,.16);
}
#NavBarMaster.r2h-collapsed .r2h-rest { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .1s ease, visibility 0s .1s; }
#NavBarMaster.r2h.r2h-peek { box-shadow: 0 6px 18px rgba(16,24,40,.12); }
@media (prefers-reduced-motion: reduce) {
  #NavBarMaster.r2h, #NavBarMaster .r2h-rest { transition: none; }
}

/*
 * Favorites (2026-09-29): a button right of Home on every page that opens a
 * dropdown of the links starred on the home page. It replaced the row of
 * pinned links that showed on the home page only. The panel (#r2hFav) reuses
 * the menu's look; header.js sets its left edge under the button.
 */
#NavBarMaster .r2h-favbtn {
  flex: none; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 9px 0 10px;
  border: 1px solid #e3e6ea; border-radius: 8px; background: #f4f5f7; cursor: pointer;
  font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #344054; white-space: nowrap;
}
#NavBarMaster .r2h-favbtn:hover, #NavBarMaster .r2h-favbtn[aria-expanded="true"] { background: #e8ecfa; border-color: #d5dbf3; color: #000D5B; }
#NavBarMaster .r2h-favstar { color: #e0a100; font-size: 15px; line-height: 1; }
#NavBarMaster .r2h-chev { width: 14px; height: 14px; display: block; transition: transform .15s ease; }
#NavBarMaster .r2h-favbtn[aria-expanded="true"] .r2h-chev { transform: rotate(180deg); }
#NavBarMaster .r2h-menu.r2h-fav { width: 320px; padding: 6px; }
#NavBarMaster .r2h-favhead { padding: 6px 10px 4px; font-size: 12px; font-weight: 600; color: #667085; text-transform: uppercase; letter-spacing: .04em; }
#NavBarMaster .r2h-favlist { max-height: calc(100vh - 150px); overflow-y: auto; }
#NavBarMaster .r2h-fav .r2h-favlist a { padding: 7px 10px; gap: 9px; }
#NavBarMaster .r2h-fav .r2h-favlist a:focus-visible { outline: 2px solid #000D5B; outline-offset: -2px; }
#NavBarMaster .r2h-favt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#NavBarMaster .r2h-fav .r2h-favlist small { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #667085; }
#NavBarMaster .r2h-fav a.r2h-favedit { font-size: 12px; color: #475467; gap: 8px; }
#NavBarMaster .r2h-fav a.r2h-favedit .r2h-favstar { font-size: 14px; }

/*
 * The page section: everything between Favorites and the name belongs to the
 * page shown (shop schedule: its tools). Elements a page marks data-r2h-page
 * are moved in by header.js.
 */
#NavBarMaster .r2h-pagesec { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; overflow: hidden; }
#NavBarMaster .r2h-pagesec > [data-r2h-page] { flex: none; margin: 0 !important; }

/*
 * The Master Lookup widget (Ty, 2026-10-07): a lookup box right of the page
 * section, for anyone who starred it on the home page's Widgets card. Typing
 * opens the results window (src/public/lookup-core.js, styled in lookup.css).
 */
#NavBarMaster .r2h-widget {
  flex: 0 1 260px; min-width: 120px; display: flex; align-items: center; gap: 6px; height: 34px;
  border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; padding: 0 8px; cursor: text;
  font: 400 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2330;
}
#NavBarMaster .r2h-widget:focus-within { border-color: #000D5B; box-shadow: 0 0 0 3px rgba(0, 13, 91, .12); }
#NavBarMaster .r2h-widget .r2h-mi { color: #000D5B; }
#NavBarMaster .r2h-widget input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: #1d2330;
  padding: 0; margin: 0; height: auto; box-shadow: none;
}
#NavBarMaster .r2h-widget input::-webkit-search-cancel-button { -webkit-appearance: none; }
#NavBarMaster .r2h-widget kbd { font: 11px/1 system-ui, sans-serif; border: 1px solid #cfd4dc; border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; color: #475467; background: #fff; }
@media (max-width: 760px) { #NavBarMaster .r2h-widget kbd { display: none; } #NavBarMaster .r2h-widget { flex-basis: 140px; } }

#NavBarMaster .r2h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #000D5B); flex: none; }
#NavBarMaster .r2h-nopin { padding: 8px 10px; font-size: 13px; color: #667085; }
#NavBarMaster .r2h-page { flex: none; display: flex; align-items: center; gap: 6px; }
#NavBarMaster .r2h-page:empty { display: none; }

#NavBarMaster .r2h-me {
  flex: none; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 8px; font: inherit; color: #1d2330;
}
#NavBarMaster .r2h-me:hover { background: #f4f5f7; }
#NavBarMaster .r2h-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #e8ecfa; color: #000D5B;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none;
}

#NavBarMaster .r2h-menu {
  position: absolute; top: 50px; left: 10px; width: 300px; max-width: calc(100vw - 20px);
  background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 8px;
}
#NavBarMaster .r2h-menu[hidden] { display: none; }
#NavBarMaster .r2h-menu a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  font: 400 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2330; text-decoration: none;
}
#NavBarMaster .r2h-menu a:hover { background: #e8ecfa; text-decoration: none; color: #1d2330; }
#NavBarMaster .r2h-menu a img, #NavBarMaster .r2h-menu .r2h-mi { width: 20px; height: 20px; text-align: center; flex: none; }
#NavBarMaster .r2h-menu hr { border: 0; border-top: 1px solid #e3e6ea; margin: 6px 4px; }
#NavBarMaster .r2h-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
#NavBarMaster .r2h-who b { font-weight: 600; }
#NavBarMaster .r2h-who small, #NavBarMaster .r2h-ip { display: block; font-size: 12px; color: #667085; }
#NavBarMaster .r2h-ip { padding: 4px 10px 6px; }
#NavBarMaster .r2h-menu a.r2h-logoff { color: #b42318; }

.body-content.r2h-offset { padding-top: 58px !important; }

@media (max-width: 600px) {
  #NavBarMaster .r2h-me .r2h-name { display: none; }
  #NavBarMaster .r2h-favlbl { display: none; }
}
/* Static pages that pull the header in with /_r2/header-embed.js. */
body.r2h-embedded { padding-top: 58px; }

/*
 * Page tool buttons: small icon buttons in one grey group. Not scoped to
 * #NavBarMaster so they still look right if the header cannot load and the
 * tools stay in the page.
 */
.r2h-tools { display: flex; align-items: center; gap: 1px; padding: 2px; background: #f4f5f7; border: 1px solid #e3e6ea; border-radius: 9px; width: max-content; }
.r2h-tools .r2h-tool {
  width: 30px; height: 30px; padding: 0; margin: 0; border: 0; border-radius: 7px; background: none; color: #344054;
  cursor: pointer; display: grid; place-items: center; text-decoration: none; flex: none;
}
.r2h-tools .r2h-tool svg { width: 18px; height: 18px; display: block; margin: auto; }
.r2h-tools .r2h-tool:hover { background: #fff; color: #000D5B; box-shadow: 0 1px 2px rgba(16,24,40,.1); text-decoration: none; }
.r2h-tools .r2h-tool.r2h-on { background: #e8ecfa; color: #000D5B; }
.r2h-tools .r2h-tool.r2h-add { background: #000D5B; color: #fff; margin-left: 3px; }
.r2h-tools .r2h-tool.r2h-add:hover { background: #1b2a8a; color: #fff; }

/*
 * Loading status. Pages mark their "Loading ..." notices data-r2h-load; in the
 * header those are hidden and replaced by one spinner with a count, and
 * hovering (or focusing) it lists each one and whether it is done.
 */
#NavBarMaster [data-r2h-load] { display: none !important; }
#NavBarMaster .r2h-load { position: relative; flex: none; }
#NavBarMaster .r2h-load[hidden] { display: none; }
#NavBarMaster .r2h-load-btn {
  display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 6px; border-radius: 6px;
  font: 400 11px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #667085; white-space: nowrap; cursor: default;
}
#NavBarMaster .r2h-load:hover .r2h-load-btn, #NavBarMaster .r2h-load:focus-within .r2h-load-btn { background: #f4f5f7; color: #1d2330; }
#NavBarMaster .r2h-spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #d0d5dd; border-top-color: #000D5B; animation: r2hspin .8s linear infinite; flex: none; }
@keyframes r2hspin { to { transform: rotate(360deg); } }
#NavBarMaster.r2h .r2h-load-pop {
  display: none; position: fixed; z-index: 10000; min-width: 220px; padding: 8px 10px;
  background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18);
  font: 400 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2330;
}
#NavBarMaster .r2h-load:hover .r2h-load-pop, #NavBarMaster .r2h-load:focus-within .r2h-load-pop { display: block; }
#NavBarMaster .r2h-load-pop b { display: block; font-weight: 600; margin-bottom: 4px; }
#NavBarMaster .r2h-load-pop ul { list-style: none; margin: 0; padding: 0; }
#NavBarMaster .r2h-load-pop li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
#NavBarMaster .r2h-load-pop li .r2h-spin { width: 9px; height: 9px; }
#NavBarMaster .r2h-load-pop li.r2h-done { color: #667085; }
#NavBarMaster .r2h-load-pop li.r2h-done::before { content: ""; width: 9px; height: 5px; margin: 0 2px 3px 1px; border: solid #15803d; border-width: 0 0 2px 2px; transform: rotate(-45deg); flex: none; }

@media print { #NavBarMaster.r2h { display: none; } .body-content.r2h-offset { padding-top: 0 !important; } body.r2h-embedded { padding-top: 0; } }
#NavBarMaster .r2h-mi.material-symbols-sharp { font-size: 20px; line-height: 20px; color: #475467; overflow: hidden; }
#NavBarMaster .r2h-avatar .r2h-mi.material-symbols-sharp { color: #000D5B; }

/* Links dropdown, right of Favorites (Ty, 2026-11-10): box titles as section
 * headings, with a search box that filters as you type (header.js). */
#NavBarMaster .r2h-linksbtn { margin-left: 6px; }
#NavBarMaster .r2h-linksbtn .r2h-mi { font-size: 18px; width: auto; height: auto; }
#NavBarMaster .r2h-menu.r2h-links { width: 360px; padding: 6px; }
#NavBarMaster .r2h-linksearch { display: flex; align-items: center; gap: 6px; margin: 2px 2px 6px; padding: 0 8px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; }
#NavBarMaster .r2h-linksearch:focus-within { border-color: #000D5B; box-shadow: 0 0 0 2px rgba(0, 13, 91, .15); }
#NavBarMaster .r2h-linksearch .r2h-mi { font-size: 18px; color: #667085; width: auto; height: auto; }
#NavBarMaster .r2h-linksearch input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; font: inherit; font-size: 14px; color: #1d2330; box-shadow: none; }
#NavBarMaster .r2h-linkslist { max-height: calc(100vh - 140px); overflow-y: auto; }
#NavBarMaster .r2h-linksec { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; background: #fff; padding: 8px 10px 4px; font-size: 11.5px; font-weight: 700; color: var(--c, #667085); text-transform: uppercase; letter-spacing: .04em; }
#NavBarMaster .r2h-links .r2h-linkslist a { padding: 6px 10px 6px 26px; gap: 8px; }
#NavBarMaster .r2h-links .r2h-linkslist a:focus-visible { outline: 2px solid #000D5B; outline-offset: -2px; }
#NavBarMaster .r2h-links .r2h-ext { font-size: 14px; color: #98a2b3; width: auto; height: auto; }
