/* The homepage's header and footer (homepage B, 2026-10-19), for the other marketing pages.
   Silas, 2026-10-19: "make the judge-profile pages match the new template/formatting for the home page."
   Classes are hb-* so nothing here touches styles.css or the app's own header. Light only, as the homepage. */
:root { --hb-sky: #F5FAFD; --hb-mist: #E4F0FA; --hb-ink: #15181B; --hb-body: #3A4250; --hb-muted: #5A6774; --hb-rule: #CFE0EF;
  --hb-graphite: #1B1D20; --hb-graphite-3: #34383E; --hb-on-dark: #F3F6F9; --hb-on-dark-2: #AFC4D8;
  --hb-slate: #46698D; --hb-blue: #BFDDF6; --hb-blue-ink: #2F5F8A;
  --hb-f: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hb-f-mark: "Jost", "Avenir Next", "Helvetica Neue", sans-serif; }
.hb-skip { position: absolute; left: 12px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--hb-ink); font: 600 15px/1.2 var(--hb-f); text-decoration: none; }
.hb-skip:focus { top: 12px; }
/* header: the graphite bar */
.hb-nav { position: sticky; z-index: 50; top: 0; height: calc(64px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) clamp(16px, 3vw, 32px) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; background: var(--hb-graphite); color: var(--hb-on-dark);
  font-family: var(--hb-f); box-sizing: border-box; }
.hb-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.hb-nav ul a { color: #C9D4DF; text-decoration: none; font-size: 14.5px; }
.hb-nav ul a:hover, .hb-nav ul a[aria-current="page"] { color: #fff; }
.hb-mark { justify-self: center; color: #fff; text-decoration: none; font-family: var(--hb-f-mark); font-weight: 500; font-size: 19px; letter-spacing: .42em; padding-left: .42em; }
.hb-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.hb-right .hb-in { color: #C9D4DF; text-decoration: none; font-size: 14.5px; }
.hb-right .hb-in:hover { color: #fff; }
.hb-cta { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--hb-blue); color: var(--hb-ink);
  font: 500 14px/1 var(--hb-f); text-decoration: none; white-space: nowrap; }
.hb-cta:hover { background: #D4E8F9; }
.hb-menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; place-content: center; gap: 6px; }
.hb-menu span { display: block; width: 20px; height: 1.5px; background: #fff; transition: transform .2s; }
.hb-menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hb-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.hb-sheet { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 8px 20px 18px; background: var(--hb-graphite); border-top: 1px solid var(--hb-graphite-3); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.hb-sheet a { padding: 13px 0; color: #E3EAF1; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--hb-graphite-3); }
.hb-sheet a:last-child { border-bottom: 0; }
/* keyboard focus (2026-10-22, accessibility audit): these pages are light only, so the ring is the homepage's ink
   (6.4:1 on the page) in every theme; on the graphite bars it is the light blue (11:1), also over a page's own more
   specific link rule (judges-courthouse.css ".jx a:focus-visible" drew the dark ring there, 2.5:1) */
body { --focus-ring: #2F5F8A; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.hb-nav :focus-visible, .hb-ftr :focus-visible, .hb-nav a:focus-visible, .hb-ftr a:focus-visible { outline: 2px solid var(--hb-blue); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 860px) { .hb-nav { grid-template-columns: auto minmax(0, 1fr); } .hb-nav nav, .hb-right .hb-in { display: none; } .hb-mark { justify-self: start; font-size: 17px; }
  .hb-menu { display: grid; } .hb-cta { padding: 0 13px; font-size: 13.5px; } }
@media (min-width: 861px) { .hb-sheet { display: none !important; } }
/* footer: four columns and the legal lines */
.hb-ftr { background: var(--hb-graphite); color: var(--hb-on-dark-2); border-top: 1px solid var(--hb-graphite-3); padding: 48px 20px 40px; font: 14px/1.55 var(--hb-f); }
.hb-ftr .hb-wrap, .hb-ftr > span { display: block; max-width: 1180px; margin-inline: auto; }
.hb-fgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
.hb-fgrid .hb-mark { padding-left: 0; }
.hb-fgrid p { margin: 12px 0 0; max-width: 36ch; }
.hb-fh { margin: 0 0 12px; font: 600 15px/1.3 var(--hb-f); letter-spacing: -.01em; color: #fff; }
.hb-fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hb-fgrid a { color: var(--hb-on-dark-2); text-decoration: none; }
.hb-fgrid a:hover { color: #fff; }
.hb-ftr > span { font-size: 13px; margin-top: 12px; }
.hb-ftr > span:first-of-type { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hb-graphite-3); }
@media (max-width: 700px) { .hb-fgrid { grid-template-columns: 1fr 1fr; } .hb-fgrid > div:first-child { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) { .hb-menu span { transition: none; } }
/* beside the older stylesheets these pages also load (styles.css .site-ftr lays the footer out as a row;
   mobile.css sets every h2 to 24px on a phone; the sheet's own display would otherwise beat [hidden]) */
.hb-sheet[hidden] { display: none !important; }
.site-ftr.hb-ftr { display: block; padding: 48px 20px 40px; font-family: var(--hb-f); font-size: 14px; line-height: 1.55; gap: 0; }
.hb-ftr h2.hb-fh { font: 600 15px/1.3 var(--hb-f) !important; letter-spacing: -.01em; color: #fff; margin: 0 0 12px; }
.hb-ftr > span { text-align: left; }
body:has(.hb-nav)::before { display: none; }   /* styles.css's 6px top bar: the old header hid it the same way (site-header.css) */
/* The other pages' bar (Silas, 2026-10-19: "the links in the top left corner should disappear and the user should
   have to navigate back to the Mootly homepage"): the mark, centred, to the homepage; the page's actions on the right. */
.hb-sub .hb-l { display: block; }
.hb-sub .hb-right { gap: 16px; }
@media (max-width: 860px) {
  .hb-sub { grid-template-columns: auto minmax(0, 1fr); }
  .hb-sub .hb-l { display: none; }
  .hb-sub .hb-right .hb-in { display: inline; font-size: 14px; }
}
.hb-fgrid.hb-fgrid-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 700px) { .hb-fgrid.hb-fgrid-2 { grid-template-columns: 1fr; } .hb-fgrid.hb-fgrid-2 > div:first-child { grid-column: auto; } }

/* ── REDUCED MOTION (2026-10-22, accessibility audit; Silas: "Okay, proceed with these fixes"). When the
   visitor's system asks for less motion, nothing on the page moves: transitions and animations take a
   hundredth of a millisecond (each ends where it would have ended, at once, and the page's own scripts still
   hear it end; delays are kept, so a notice still shows for as long as it did), nothing loops, and nothing
   scrolls smoothly. The same block is in styles.css and typeset.css, since a few pages load only one of them. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
