/* The one top bar every page uses, Construction Set and Field Book alike (Brandon, 11/01/2026:
   the menu and the navigation stay the same on every page). Everything is scoped to .bt-top so
   neither page style can change it. Fonts: Barlow Condensed only, which both styles load. */

.bt-top {
  --t-bg: #1E4A85;
  --t-bg2: #183e70;
  --t-cream: #F0EAD6;
  --t-orange: #E07820;
  --t-ink: #111111;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--t-bg);
  color: var(--t-cream);
  border-bottom: 3px solid var(--t-orange);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  line-height: 1.1;
}
.bt-top *, .bt-top *::before, .bt-top *::after { box-sizing: border-box; }
.bt-top a { color: inherit; text-decoration: none; }
.bt-top :focus-visible { outline: 3px solid var(--t-orange); outline-offset: 2px; }

.bt-top__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Logo on a cream plate, then the descriptor */
.bt-top__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bt-top__plate { display: block; background: var(--t-cream); padding: 6px 10px; border-radius: 3px; }
.bt-top__plate img { display: block; height: 34px; width: auto; }
.bt-top__desc { display: flex; flex-direction: column; gap: 3px; }
.bt-top__desc b { font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.bt-top__desc span { font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }

/* The page links: sheet number over the page name */
.bt-top__nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.bt-top__nav ol { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.bt-top__link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 10px 9px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.bt-top__no { font-weight: 600; font-size: .7rem; letter-spacing: .12em; opacity: .7; }
.bt-top__nm { font-weight: 600; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.bt-top__link:hover { background: var(--t-bg2); }
.bt-top__link[aria-current="page"] { border-bottom-color: var(--t-orange); }
.bt-top__link[aria-current="page"] .bt-top__no { color: var(--t-orange); opacity: 1; }

.bt-top__phone { font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; white-space: nowrap; padding: 0 10px; }
.bt-top__cta {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--t-orange); color: var(--t-ink) !important;
  padding: 9px 14px; border-radius: 3px; white-space: nowrap;
}
.bt-top__cta .bt-top__no { opacity: .75; }
.bt-top__cta .bt-top__nm { font-weight: 700; }
.bt-top__cta:hover { background: #c96812; }
.bt-top__cta[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--t-ink); }

/* Menu button (phone and tablet) */
.bt-top__menu {
  display: none; margin-left: auto; align-items: center; gap: 8px;
  background: transparent; color: var(--t-cream); cursor: pointer;
  border: 1px solid rgba(240, 234, 214, .55); border-radius: 3px; padding: 9px 14px;
  font: 700 1rem/1 "Barlow Condensed", "Arial Narrow", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase;
}
.bt-top__menu svg { width: 14px; height: 14px; transition: transform .2s; }
.bt-top__menu[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 1240px) {
  .bt-top__desc span { display: none; }
  .bt-top__phone { display: none; }
}
@media (max-width: 1180px) {
  .bt-top__in { flex-wrap: wrap; }
  .bt-top__menu { display: inline-flex; }
  .bt-top__nav {
    display: none; width: 100%; margin: 0; padding: 4px 0 16px;
    flex-direction: column; align-items: stretch; gap: 10px;
    border-top: 1px solid rgba(240, 234, 214, .25);
  }
  .bt-top__nav.is-open { display: flex; }
  .bt-top__nav ol { flex-direction: column; gap: 0; }
  .bt-top__link {
    flex-direction: row; align-items: baseline; gap: 14px;
    padding: 13px 4px; margin: 0;
    border-bottom: 1px solid rgba(240, 234, 214, .18);
    border-left: 4px solid transparent;
  }
  .bt-top__link[aria-current="page"] { border-bottom-color: rgba(240, 234, 214, .18); border-left-color: var(--t-orange); padding-left: 10px; }
  .bt-top__no { min-width: 48px; }
  .bt-top__nm { font-size: 1.15rem; }
  .bt-top__phone { display: block; padding: 6px 4px 0; font-size: 1.3rem; }
  .bt-top__cta { flex-direction: row; align-items: baseline; gap: 14px; padding: 13px 14px; }
}
@media (max-width: 560px) {
  .bt-top__desc { display: none; }
  .bt-top__plate img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .bt-top__menu svg { transition: none; } }
