.top-bar-bg {
    background-color: #1d407e;
  }
/* ---- Phones: the top bar shows only the logo (2026-09) ----
   Email, office hours, phone and links stacked into ~180px of blue on a
   phone. They are all in the footer and on Contact Us, so hide them here.
   overflow-x also stops the bar's row gutters making the page scroll
   sideways by a pixel. */
@media (max-width: 767.98px) {
  .top-bar-bg { overflow-x: hidden; padding-top: 8px !important; padding-bottom: 8px !important; }
  .top-bar-bg .row > div:not(:first-child) { display: none; }
  .top-bar-bg .row > div:first-child { text-align: center; }
}

/* ---- Phones: menu button sits in the top bar, left of the logo (2026-09) ----
   The top bar gets its own toggler (.jct-top-toggler) that opens the same
   #navbar-default menu; the original toggler row is hidden so the white
   strip under the top bar disappears until the menu is opened.
   Tablet/desktop (>= 768px) are unchanged. */
.jct-top-toggler { display: none; }

@media (max-width: 767.98px) {
  .top-bar-bg .row > div.jct-brand-col {
    display: flex; align-items: center; justify-content: space-between; text-align: left;
  }
  .jct-brand-col .navbar-brand { margin: 0 auto; padding: 0; }
  .jct-brand-col::after { content: ""; width: 44px; flex: 0 0 44px; }  /* balances the button so the logo stays centred */

  .jct-top-toggler {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; flex: 0 0 44px; padding: 0;
    background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 10px;
    cursor: pointer; transition: background .2s, border-color .2s;
  }
  .jct-top-toggler:hover, .jct-top-toggler:focus-visible { background: rgba(255,255,255,.1); border-color: #fde362; outline: 0; }
  .jct-top-toggler .icon-bar {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff;
    transition: transform .2s, opacity .2s;
  }
  /* open state: bars form an X */
  .jct-top-toggler .top-bar    { transform: translateY(7px) rotate(45deg); }
  .jct-top-toggler .middle-bar { opacity: 0; }
  .jct-top-toggler .bottom-bar { transform: translateY(-7px) rotate(-45deg); }
  .jct-top-toggler.collapsed .top-bar,
  .jct-top-toggler.collapsed .bottom-bar { transform: none; }
  .jct-top-toggler.collapsed .middle-bar { opacity: 1; }

  /* hide the old toggler row; the menu panel only takes space when open */
  .navbar-default > .container > .navbar-toggler { display: none; }
  .navbar-default { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0; }
  .navbar-default .navbar-collapse.show,
  .navbar-default .navbar-collapse.collapsing { padding: 8px 16px 14px; }
}
