/* hb-header.css: Humboldt round 1, header slice: page frame, header (phone bar, round logo, menu, two click dropdowns),
   fish strip and footer. Values are the old site's (public/css/style.css on main, measured live). Breakpoints are the
   old site's: 375 / 768 / 1024 / 1366 px. The menu collapses below 1024 px. Loaded after hb-theme.css, which owns the
   role classes (.hb-bar .hb-menu-link .hb-contact-box .hb-fb-icon .hb-toggler .hb-footer). */

.hb-hdr { position: relative; background-color: #ffffff; z-index: 5; }
.hb-wrapper { overflow-x: clip; }

/* Phone bar: phone left, Facebook icon + Contact right, the round logo over it. */
.hb-bar { position: relative; width: 100%; }
.hb-bar-in { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hb-tel { display: flex; flex-direction: column; font-size: .75rem; font-weight: 500; line-height: 1.84; letter-spacing: 1.12px; margin-bottom: .625rem; }
.hb-tel a { color: #ffffff; text-decoration: none; transition: color .3s ease-in-out; }
.hb-tel a:hover { color: #5aebe7; }
.hb-tel a:active { color: #adb5bd; }
.hb-contacts { display: flex; flex-wrap: wrap; cursor: pointer; }
.hb-contacts a { margin: 0 .125rem 3px 0; }
.hb-contacts .hb-fb-icon i { box-sizing: border-box; padding: 0 0 0 8px; }
.hb-hdr-logo { position: absolute; top: 50%; left: .9375rem; transform: translateY(-50%); display: block; height: 4.0625rem; width: 4.0625rem; padding: .625rem; background-color: #ffffff; border-radius: 50%; z-index: 50; box-sizing: border-box; }
.hb-hdr-logo img { display: block; width: 100%; height: 100%; }

/* Menu */
.hb-nav-box { padding: 0; }
.hb-nav { position: relative; padding: .625rem 1rem .5rem; z-index: 3; background-color: #ffffff; }
.hb-nav::after { display: block; position: absolute; content: ""; top: 70%; left: 0; right: 0; height: 50%; z-index: 2; background: transparent; pointer-events: none; }
.hb-nav-list { position: relative; z-index: 3; display: none; flex-direction: column; list-style: none; margin: 0; padding: 0; background-color: #ffffff; }
.hb-nav.hb-open .hb-nav-list { display: flex; }
.hb-nav .hb-menu-link { display: block; font-size: .75rem; padding: .5rem 0; }
.hb-nav .hb-toggler { position: absolute; top: -3.125rem; right: .9375rem; padding: 0; border-color: transparent; cursor: pointer; z-index: 20; }
.hb-nav .hb-toggler-icon { width: 30px; height: 30px; }   /* old .navbar-toggler-icon: 30 x 30 in a 32 px button */
.hb-nav-list > li { position: relative; }
.hb-dd-toggle::after { display: inline-block; margin-left: .255em; vertical-align: .255em; content: ""; border-top: .3em solid; border-right: .3em solid transparent; border-bottom: 0; border-left: .3em solid transparent; }
.hb-dropdown { display: none; background-color: #ffffff; text-align: left; font-size: 1rem; list-style: none; }
.hb-dropdown.hb-show { display: block; }
.hb-dropdown a { display: block; padding: .25rem 1.5rem; font-weight: 400; letter-spacing: 1.27px; line-height: 1.77; color: #212529; text-decoration: none; white-space: nowrap; background-color: transparent; }
.hb-dropdown a:hover, .hb-dropdown a:focus { color: #16181b; background-color: #e9ecef; }

/* The page frame: the water photo behind all content; the content column is the old container. */
.hb-frame { padding: 0; }   /* a plain wrapper: the water photo and its 10 px belong to the page's own section (old .intro-section) */

/* Fish strip and footer */
.hb-fish { position: relative; z-index: 1; height: 1.875rem; padding: 0; background-image: radial-gradient(circle, #5aebe7 0%, #288a85 76%); }
.hb-fish::after { display: block; position: absolute; content: ""; top: 90%; left: 50%; transform: translateX(-50%); height: 80%; width: 90%; z-index: 2; background: transparent; pointer-events: none; }
.hb-fish-wrap { position: absolute; top: 0; left: 0; right: 0; height: 1.875rem; padding: 0 15px; background-image: url("../img/hb/header/fishes.png"); background-position: 0 50%; background-repeat: repeat-x; z-index: 10; }
.hb-footer { position: relative; padding: 2.875rem 0 3.125rem; font-size: .625rem; line-height: 1.5; }
.hb-footer-in { display: flex; flex-direction: column; align-items: center; justify-content: space-between; margin: 0 auto; }
.hb-footer-logo-col { width: 66.6667%; padding: 0 15px; box-sizing: border-box; }
.hb-footer-logo { width: 100%; max-width: 6.625rem; max-height: 6.625rem; height: 6.625rem; margin: 0 auto 1.25rem; }
.hb-footer-logo a, .hb-footer-logo img { display: block; width: 100%; height: auto; }
.hb-footer-text-col { width: 100%; padding: 0 15px; box-sizing: border-box; }
.hb-footer-text { text-align: center; }
.hb-footer-text p { margin: 0 0 .625rem; }

@media (min-width: 768px) {
  .hb-tel { font-size: 1.25rem; margin-bottom: 0; }
  .hb-contacts a { font-size: 1.4375rem; line-height: 1.27; }
  .hb-contacts a.hb-contact-box { font-size: 1rem; line-height: 1.27; }
  .hb-nav { padding-top: 2.6875rem; }
  .hb-nav .hb-menu-link { padding: .3125rem .9375rem; }
  /* Old .intro-section .container is white from this width; pages without the intro section (reports, counts, the
     report page) had a plain container on the white page. */
  .hb-water > .container { background-color: #ffffff; }
}

@media (max-width: 1023.98px) {
  .hb-nav-box { padding: 0; }
  .hb-nav .hb-dropdown { position: static; float: none; border: 0; padding: 0 0 0 1rem; }
}

@media (min-width: 1024px) {
  .hb-hdr { padding-top: 4.375rem; }
  .hb-bar-in { position: static; transform: none; flex-direction: row; justify-content: space-between; align-items: center; }
  .hb-tel { width: 50%; padding-right: 7.5rem; font-size: 1.5625rem; }
  .hb-hdr-logo { top: 50%; left: 50%; transform: translate(-50%, -50%); height: 11.25rem; width: 10.625rem; padding: .9375rem 1.0625rem; }
  .hb-contacts { width: 50%; padding-left: 120px; justify-content: flex-end; }
  .hb-nav { background-color: transparent; }
  .hb-nav::after { background: radial-gradient(closest-side, rgba(108, 117, 125, .321569), transparent); }
  .hb-nav-list { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; width: 100%; }
  .hb-nav .hb-menu-link { padding: .3125rem; }
  .hb-nav .hb-toggler { display: none; }
  .hb-dropdown { position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 10rem; padding: .5rem 0; margin: .125rem 0 0; border: 1px solid rgba(0, 0, 0, .15); border-radius: .25rem; }
  .hb-fish::after { background: radial-gradient(closest-side, #1e6662, transparent); }
}

@media (min-width: 1024px) and (max-width: 1365.98px) {
  .hb-footer-logo { margin: 0 auto 1.25rem; }
}

@media (min-width: 1024px) {
  .hb-footer-in { flex-direction: row; width: 91.6667%; }
  .hb-footer-logo-col { width: 16.6667%; }
  .hb-footer-text-col { width: 58.3333%; }
  .hb-footer .container { padding: 0; }
}

@media (min-width: 1366px) {
  .hb-hdr { padding-top: 6.75rem; }
  .hb-hdr-logo { height: 13.8125rem; width: 13.5625rem; }
  .hb-contacts { padding-right: 180px; }
  .hb-nav-box { padding: 24px; }
  .hb-nav::after { left: -4.375rem; right: -4.375rem; }
  .hb-nav .hb-menu-link { font-size: .875rem; }
  .hb-footer { font-size: .875rem; }
  .hb-footer-text p { margin-bottom: 0; }
  .hb-footer-logo { margin: 0; }
}

/* An open dropdown's toggle is light teal (old .nav-link.show). */
.hb-nav .hb-dd-toggle[aria-expanded="true"] { color: #5aebe7; }

/* Combine 2026-11-27 (look sweep, sitewide): */
/* the old dropdown toggles (Bootstrap .dropdown-toggle) never wrap */
.hb-nav .hb-dd-toggle { white-space: nowrap; }
/* the footer text: line-height 1.5 on a phone and tablet, the body's 1.77 from 1024 (old: 14 px on a 25 px line) */
@media (min-width: 1024px) { .hb-footer { line-height: 1.77; } }
/* below 1366 the old footer columns sat in a Bootstrap row (-15 px), so the text starts 15 px from the edge, not 30 */
@media (max-width: 1365.98px) { .hb-footer-in { margin-left: -15px; margin-right: -15px; } }
/* the Facebook glyph follows the text size below 1024 px (old: 10 px on a phone), 23 px only in the desktop bar */
@media (max-width: 1023.98px) {
  .hb-fb-icon i { font-size: .625rem; line-height: .625rem; }   /* old: the <i> on the 10 px text, its glyph still 23 px */
  .hb-fb-icon i::before { line-height: 1.4375rem; }
  .hb-contacts a.hb-contact-box { line-height: 1; }   /* old "Contact" on a phone: 16 px text on a 16 px line */
}
@media (min-width: 768px) and (max-width: 1023.98px) { .hb-fb-icon i { font-size: .9375rem; line-height: .9375rem; } }

/* The Contact notice (hb-contact-toast.js): small, bottom centre, fades in and out, never takes a click. */
.hb-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2000; max-width: calc(100% - 32px); padding: 10px 16px; transform: translateX(-50%);
  background-color: #288a85; color: #ffffff; font-size: .875rem; line-height: 1.4; text-align: center; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease-in-out, visibility 0s linear .4s; }
.hb-toast.hb-toast-on { opacity: 1; visibility: visible; transition: opacity .3s ease-in-out; }
@media (prefers-reduced-motion: reduce) { .hb-toast, .hb-toast.hb-toast-on { transition: none; } }
