/* The site header and footer (Chapter Seven, part 5; mocked over the live
   page and shaped by Bill, session 93): templates/partial/header.html and
   site_footer.html, static/js/chrome.js. Today's colours - the black bar,
   Oswald, white type, the orange accent - until the R2-D2 theme comes in
   with the home page (Bill, session 74).

   992px and wider: a bar with drop-downs. Below: logo, search, a menu
   button opening a panel. Footer: four columns, two from 760px, one from
   420px. Narrow rules come after the rules they change.

   The header is a stacking context at z-index 30, as the old navbar was
   (CLAUDE.md: a page layer above content but below the menus sits at 1-29). */

.hb-hd {
  position: relative; z-index: 30; background: #000; height: 80px;
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
  font-family: Oswald, sans-serif;
}
.hb-hd-logo img { height: 56px; display: block; }
.hb-hd-logo .hb-hd-logo-bug { display: none; }
@media (max-width: 1180px) {
  .hb-hd-logo .hb-hd-logo-full { display: none; }
  .hb-hd-logo .hb-hd-logo-bug { display: block; }
}

/* The search bar is partial/searchbar.html, as before. main_nice.css gives
   its magnifier a fixed 18.3rem width - right for a 300px box only - and
   the old stylesheets hide it below 992px, where the old drawer had a box
   of its own. */
.hb-hd-search { flex: 1 1 300px; max-width: 300px; min-width: 140px; }
.hb-hd-search #hb-global-search { display: block !important; position: static; width: 100%; margin: 0; }
.hb-hd-search .hb-global-search-input { position: relative; width: 100%; margin: 0; }
.hb-hd-search .hb-global-search-input .form-control { width: 100%; }
.hb-hd-search .hb-global-search-input .form-control-feedback {
  width: auto; top: 0; bottom: 0; right: 10px; align-items: center;
}

.hb-hd-nav { margin-left: auto; }
.hb-hd-menu {
  display: flex; align-items: center; margin: 0; padding: 0;
  list-style: none; flex-wrap: nowrap;
}
.hb-hd-menu > li { position: relative; }
.hb-hd-top {
  display: flex; align-items: center; gap: 5px; color: #fff; font-weight: 200;
  text-transform: uppercase; font-size: clamp(16px, 1.55vw, 22.4px);
  padding: 8px clamp(5px, .6vw, 9px); white-space: nowrap; text-decoration: none;
  background: none; border: 0; cursor: pointer; line-height: 1.3; font-family: inherit;
}
.hb-hd-top i { font-size: .55em; opacity: .7; }
.hb-hd-top:hover, .hb-hd-has.hb-hd-open > .hb-hd-top { color: #F3843E; text-decoration: none; }
/* Bootstrap rings a button on any focus (CLAUDE.md); keep it for the keyboard. */
.hb-hd-top:focus { outline: none; box-shadow: none; }
.hb-hd-top:focus-visible { outline: 2px solid #F3843E; outline-offset: 2px; }

.hb-hd-drop {
  display: none; position: absolute; top: 100%; left: 0; min-width: 190px;
  background: #000; border-top: 3px solid #F3843E; padding: 8px 0 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.hb-hd-right .hb-hd-drop { left: auto; right: 0; }
@media (hover: hover) and (min-width: 992px) { .hb-hd-has:hover > .hb-hd-drop { display: block; } }
@media (min-width: 992px) { .hb-hd-has:focus-within > .hb-hd-drop { display: block; } }
.hb-hd-has.hb-hd-open > .hb-hd-drop { display: block; }
.hb-hd-item {
  display: block; color: #fff; font-weight: 200; text-transform: uppercase;
  font-size: 16px; padding: 4px 20px; white-space: nowrap; text-decoration: none;
}
.hb-hd-item:hover, .hb-hd-item:focus-visible {
  color: #F3843E; background: #161616; outline: none; text-decoration: none;
}
.hb-hd-drop hr { border: 0; border-top: 1px solid #2c2c2c; margin: 8px 0; }
.hb-hd-label {
  color: #F3843E; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 20px 2px; font-weight: 400;
}
.hb-hd-login {
  display: inline-block; margin-left: 10px; color: #000; font-weight: 300;
  font-size: 12.8px; letter-spacing: 1px; text-transform: lowercase; white-space: nowrap;
  padding: 9px 14px 6px; background: url("../img/login-bg.3e47ad0a3136.svg") center / 100% 100% no-repeat;
  text-decoration: none;
}
.hb-hd-login:hover { color: #000; text-decoration: none; }
.hb-hd-account { color: #F3843E; margin-left: 6px; }
.hb-hd-account .fa-user-circle { font-size: .8em; opacity: 1; }

/* The menu button: shown only below 992px, where the menus become a panel. */
.hb-hd-burger {
  display: none; background: none; border: 0; color: #fff; font-size: 26px;
  padding: 6px 4px; margin-left: auto; cursor: pointer; line-height: 1;
}
.hb-hd-burger:focus { outline: none; box-shadow: none; }
.hb-hd-burger:focus-visible { outline: 2px solid #F3843E; outline-offset: 2px; }

@media (max-width: 991.98px) {
  .hb-hd { height: 64px; gap: 12px; padding: 0 14px; }
  .hb-hd-logo img { height: 44px; }
  .hb-hd-search { flex: 1 1 auto; max-width: none; min-width: 0; }
  .hb-hd-burger { display: block; }
  .hb-hd-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: #000; border-top: 3px solid #F3843E; padding: 6px 0 14px;
    max-height: calc(100vh - 64px); overflow-y: auto; box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  }
  .hb-hd.hb-hd-panel .hb-hd-nav { display: block; }
  .hb-hd-menu { flex-direction: column; align-items: stretch; }
  .hb-hd-menu > li { border-bottom: 1px solid #1c1c1c; }
  /* Left-aligned, the arrow pushed to the edge (the account's icon and name stay together). */
  .hb-hd-top { width: 100%; justify-content: flex-start; font-size: 20px; padding: 12px 20px; text-align: left; }
  .hb-hd-top i.fa-chevron-down { margin-left: auto; transition: transform .15s; }
  .hb-hd-has.hb-hd-open > .hb-hd-top i.fa-chevron-down { transform: rotate(180deg); }
  .hb-hd-account { margin-left: 0; }
  .hb-hd-drop { position: static; min-width: 0; border-top: 0; box-shadow: none; padding: 0 0 10px; background: #0b0b0b; }
  .hb-hd-item { font-size: 17px; padding: 9px 36px; }
  .hb-hd-label { padding: 6px 36px 2px; }
  .hb-hd-menu > li.hb-hd-acct { border-bottom: 0; padding-top: 6px; }
  .hb-hd-login { display: block; margin: 12px 20px 0; text-align: center; font-size: 15px; padding: 12px 14px 9px; }
}
@media (max-width: 420px) {
  .hb-hd { gap: 10px; padding: 0 10px; }
  .hb-hd-logo img { height: 38px; }
}

/* The floating Facebook and Twitter buttons that 67 page templates draw -
   retired (Bill, session 93); the footer carries both links. */
.butn-twitter, .butn-facebook { display: none; }

/* The footer. */
.hb-ft {
  background: #1d1d1d url("../img/footer-background.40e851fb8ceb.jpg") center / cover;
  color: #f1efec; padding: 48px 20px 22px; font-family: 'Open Sans', sans-serif;
}
.hb-ft-in { max-width: 1140px; margin: 0 auto; }
.hb-ft-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.hb-ft-brand img { height: 56px; display: block; margin-bottom: 14px; }
.hb-ft-head {
  font-family: Oswald, sans-serif; font-weight: 300; text-transform: uppercase; font-size: 20px;
  line-height: 1.2; letter-spacing: 1px; color: #f1efec; margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid #F3843E; display: inline-block;
}
.hb-ft ul { list-style: none; margin: 0; padding: 0; }
.hb-ft li { margin: 0 0 8px; }
.hb-ft a { color: #f1efec; opacity: .85; font-size: 15px; text-decoration: none; }
.hb-ft a:hover, .hb-ft a:focus-visible { color: #F3843E; opacity: 1; outline: none; text-decoration: none; }
.hb-ft li a img { height: 16px; width: 16px; vertical-align: -2px; margin-right: 8px; }
.hb-ft-base {
  margin-top: 36px; padding-top: 16px; border-top: 1px solid #333; font-size: 13px;
  opacity: .7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.hb-ft-legal { flex: 1 1 420px; max-width: 760px; text-align: right; line-height: 1.5; }
@media (max-width: 760px) {
  .hb-ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .hb-ft-brand { grid-column: 1 / -1; }
  .hb-ft-legal { text-align: left; }
}
@media (max-width: 420px) {
  .hb-ft { padding: 36px 16px 20px; }
  .hb-ft-cols { grid-template-columns: 1fr; }
  .hb-ft a { font-size: 16px; }
  .hb-ft li { margin-bottom: 12px; }
}
