/* TMC Header B (Neon Sign) + navy unification — Nov 25, 2026.
   Terry's ruling: dark navy var(--tmc-bg-surface, #0D1B2A) is the unified header and footer
   color across the domain. Brand tokens only; gold buttons carry
   white text. No Tailwind.
   STANDING RULE (Terry, Nov 25, 2026): the header and the footer
   ALWAYS carry one unified color — dark navy var(--tmc-bg-surface, #0D1B2A) — on every
   page of the domain. No band, section, wrapper, or layer of
   either may render a different background color; an area that
   would be black takes the darkest navy var(--tmc-bg-main, #060D14) instead. Any
   future design work that gives the header or footer a second
   color violates this rule. */

/* ---------- Navy unification: header 113 + footer 110, all widths ---------- */
header.elementor-location-header,
header.elementor-location-header .elementor-section,
header.elementor-location-header .elementor-column,
header.elementor-location-header .elementor-widget-wrap,
header.elementor-location-header .e-con,
header.elementor-location-header .e-con-inner,
body footer.elementor-location-footer,
body footer.elementor-location-footer .elementor-section,
body footer.elementor-location-footer .elementor-inner-section,
body footer.elementor-location-footer .elementor-section-wrap,
body footer.elementor-location-footer .elementor-container,
body footer.elementor-location-footer .elementor-column,
body footer.elementor-location-footer .elementor-column-wrap,
body footer.elementor-location-footer .elementor-widget-wrap,
body footer.elementor-location-footer .e-con,
body footer.elementor-location-footer .e-con-inner,
body footer.elementor-location-footer .elementor-background-overlay {
  background-color: var(--tmc-bg-surface, #0D1B2A) !important;
  background-image: none !important;
}
/* The design-token stylesheet paints the footer from its own token,
   --tmc-footer-bg, which was the lighter slate. Redefine the token
   at the footer scope so every rule that reads it lands on the
   unified second darkest navy (Terry, Nov 25, 2026). */
body footer.elementor-location-footer {
  --tmc-footer-bg: var(--tmc-bg-surface, #0D1B2A);
}
/* One solid footer color, no frame (Terry, Nov 25, 2026): the
   footer's outer section kept its legacy slate as a visible frame
   around the inner panel. Every background-bearing layer inside
   the footer is the same navy. Excluded, deliberately: form fields
   (the design system's input fill), the gold buttons and their
   contents, and the social icons (brand discs; Instagram's is
   handled by the darkest-navy rule below). */
body footer.elementor-location-footer *:not(input):not(textarea):not(select):not(option):not(.elementor-button):not(.elementor-button *):not(.elementor-social-icon):not(.elementor-social-icon *) {
  background-color: var(--tmc-bg-surface, #0D1B2A) !important;
  background-image: none !important;
}
/* The homepage's "Keep Texas Music Alive" CTA container sits flush
   on top of the footer and reads as its top band; it carried the
   accent slate from its own settings. Unified to the same
   navy so the footer region reads as one color (Terry, Nov 25,
   2026). Homepage element only. */
.elementor-166 .elementor-element-6e14caa {
  background-color: var(--tmc-bg-surface, #0D1B2A) !important;
}
/* Black areas become the darkest navy (Terry, Nov 25, 2026): the
   Instagram disc renders near-black (#262626); it becomes var(--tmc-bg-main, #060D14).
   The Facebook and YouTube brand colors are not black and stay. */
body footer.elementor-location-footer .elementor-social-icon-instagram {
  background-color: var(--tmc-bg-main, #060D14) !important;
  background-image: none !important;
}
/* One solid header color, no exceptions (Terry, Nov 25, 2026 —
   "the space behind the menu should be dark navy globally"): the
   header gets the same catch-all treatment as the footer. Every
   background-bearing layer inside the header is the unified navy,
   including the nav menu's dropdown panel and its items, whose
   background setting pointed at the darkest tier. Excluded, as in
   the footer: form fields, the gold buttons and their contents,
   and the social icons. */
header.elementor-location-header *:not(input):not(textarea):not(select):not(option):not(.elementor-button):not(.elementor-button *):not(.elementor-social-icon):not(.elementor-social-icon *) {
  background-color: var(--tmc-bg-surface, #0D1B2A) !important;
  background-image: none !important;
}
header.elementor-location-header a {
  color: #fff !important;
}
footer.elementor-location-footer a {
  color: #fff !important;
}
/* Gold button rule enforcement: the footer's gold submit/button
   elements render dark text from the form's own styles — gold
   buttons carry white text exclusively (Terry, Nov 25, 2026). */
footer.elementor-location-footer button.elementor-button,
footer.elementor-location-footer .elementor-button {
  color: #fff !important;
}
footer.elementor-location-footer :is(h1, h2, h3, h4, h5, h6, p, li, .elementor-icon-list-text, .elementor-heading-title) {
  color: #fff !important;
}
/* Footer components go full width on mobile (Terry, Nov 25, 2026):
   the columns they sit in stack edge to edge instead of keeping
   their desktop shares. */
@media (max-width: 767px) {
  /* The two footer menu columns (EXPLORE / GET INVOLVED) are exempt:
     full width broke their 2-column layout (Terry, Nov 25, 2026).
     They keep their natural column widths and sit side by side;
     every other footer component still goes full width. */
  footer.elementor-location-footer .elementor-column:not(:has(.tmc-footer-links)) {
    width: 100% !important;
  }
  footer.elementor-location-footer .e-con {
    --width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* ---------- B masthead: hidden unless mobile/tablet (or QA force) ---------- */
.tbh-band,
.tbh-row,
.tbh-strip,
.tbh-panel {
  display: none;
}
/* Tablet carries the mobile top menu too (Terry, Nov 25, 2026):
   the B masthead replaces header template 113 through 1024px;
   the current tablet header is decommissioned. Ticketed event
   pages carry no tbh-on class, so their header is untouched. */
@media (max-width: 1024px) {
  body.tbh-on .tbh-band { display: block; }
  body.tbh-on .tbh-row { display: flex; }
  body.tbh-on .tbh-strip { display: flex; }
  body.tbh-on .tbh-panel.open { display: block; }
  body.tbh-on header.elementor-location-header { display: none; }
}
body.bh-force .tbh-band { display: block; }
body.bh-force .tbh-row { display: flex; }
body.bh-force .tbh-strip { display: flex; }
body.bh-force .tbh-panel.open { display: block; }
body.bh-force header.elementor-location-header { display: none; }

.tbh-band {
  background: var(--tmc-bg-surface, #0D1B2A);
  text-align: center;
  padding: 1.3rem 1rem 1.05rem;
}
.tbh-logo {
  display: inline-block;
  line-height: 0;
}
.tbh-logo img {
  height: 150px;
  width: auto;
  display: block;
  /* The sign is photographic neon with dark lettering in the art;
     a soft gold halo lifts it off the navy the way the tubes glow
     in the room. */
  filter: drop-shadow(0 0 26px rgba(212, 175, 55, 0.38));
}
.tbh-row {
  background: var(--tmc-bg-surface, #0D1B2A);
  border-top: 1px solid #D4AF37;
  justify-content: center;
  gap: 2.1rem;
  padding: 0.7rem 1rem 0.85rem;
}
.tbh-row a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* Unified menu (Terry, Nov 25, 2026): ONE WordPress Main Menu at every
   screen size. On mobile/tablet the masthead row carries a Menu button;
   the panel below renders the same Main Menu the desktop header uses —
   no second, hard-coded link list. */
.tbh-menu-btn {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.15rem 0.5rem;
}
.tbh-menu-btn .tbh-caret {
  color: #D4AF37;
  font-size: 0.8em;
}
.tbh-panel {
  background: var(--tmc-bg-surface, #0D1B2A);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.4rem 1rem 1rem;
}
.tbh-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.tbh-menu li {
  margin: 0;
  padding: 0;
}
.tbh-menu a {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 0.5rem;
}
.tbh-menu .sub-menu {
  list-style: none;
  margin: 0 0 0.3rem;
  padding: 0;
}
.tbh-menu .sub-menu a {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.35rem 0.5rem;
}
.tbh-menu a[href$="/donate/"] {
  color: #D4AF37;
  font-weight: 800;
}

/* Slim sticky strip: takes over once the masthead scrolls away. */
.tbh-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 99990;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.75rem;
  background: var(--tmc-bg-surface, #0D1B2A);
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}
.tbh-strip.show {
  transform: none;
}
body.admin-bar .tbh-strip { top: 46px; }
.tbh-strip-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.tbh-strip-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.tbh-strip-tickets {
  margin-left: auto;
  background: #D4AF37;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
}
