/* =========================================================
   THE MUSIC BLUEPRINT — MASTHEAD
   blog.brmarketgroup.com

   Link this BEFORE shared.css in your <head>:
     <link rel="stylesheet" href="/css/masthead.css">
     <link rel="stylesheet" href="/css/shared.css">

   BEM-style prefix: .mh-  (avoids collisions with shared.css .masthead)
   ========================================================= */

/* ── Outer shell ─────────────────────────────────────────── */
.mh {
  background: var(--bg);                   /* whitesmoke from shared.css */
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ── Row 1: eyebrow · wordmark · actions ────────────────── */
.mh-row1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  gap: 1rem;
}

/* Eyebrow — left column */
.mh-eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  min-height: 13px;          /* prevent layout shift while loading */
}
.mh-eyebrow-vol {
  color: var(--ink);
}

/* Loading shimmer */
.mh-shimmer {
  display: inline-block;
  width: 90px;
  height: 9px;
  background: var(--ink-faint);
  border-radius: 3px;
  animation: mh-shimmer 1.2s ease-in-out infinite alternate;
  vertical-align: middle;
}
@keyframes mh-shimmer {
  from { opacity: 0.35; }
  to   { opacity: 0.8;  }
}

/* Wordmark — center column */
.mh-logo-wrap {
  display: flex;
  justify-content: center;
}
.mh-logo {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.mh-logo:hover { opacity: 0.6; }

/* Actions — right column (stacked) */
.mh-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Search button */
.mh-search {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 180px;
  padding: 4px 10px 4px 8px;
  background: transparent;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mh-search:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.mh-search-icon {
  width: 11px;
  height: 11px;
  stroke-width: 1.75;
  flex-shrink: 0;
}
.mh-search-label { flex: 1; }
.mh-kbd {
  font-size: 8px;
  padding: 1px 4px;
  border: 1px solid var(--ink-faint);
  border-radius: 3px;
  color: var(--ink-soft);
  margin-left: auto;
}

/* Submit Music */
.mh-submit {
  display: inline-block;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  font-family: inherit;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mh-submit:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── Row 2: back-link · nav ──────────────────────────────── */
.mh-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem);
  gap: 1rem;
}

/* ← BR Marketing Group */
.mh-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mh-back:hover { color: var(--ink); }
.mh-back-arrow {
  width: 10px;
  height: 10px;
  stroke-width: 1.75;
  flex-shrink: 0;
}

/* Nav links */
.mh-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.mh-nav a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mh-nav a:hover { color: var(--ink); }
.mh-nav a.is-current {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 720px) {

  /* Row 1: logo left, icons right — eyebrow hidden */
  .mh-row1 {
    grid-template-columns: auto 1fr auto;
    padding: 0.9rem clamp(1rem, 5vw, 1.5rem);
  }
  .mh-eyebrow    { display: none; }
  .mh-logo-wrap  { justify-content: flex-start; }
  .mh-logo       { font-size: 1rem; }

  /* Actions become a row of icon buttons */
  .mh-actions    { flex-direction: row; align-items: center; gap: 8px; }
  .mh-search     { width: auto; padding: 6px; border-radius: 50%; justify-content: center; }
  .mh-search-label, .mh-kbd { display: none; }
  .mh-search-icon { width: 16px; height: 16px; }
  .mh-submit     { display: none; }   /* moved into mobile drawer */

  /* Row 2: hidden — nav moves into mobile drawer */
  .mh-row2       { display: none; }

  /* Mobile burger — rendered by masthead-mobile.js */
  .mh-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .mh-burger-line {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 1px;
    transition: width 0.2s ease;
  }
  .mh-burger-line:nth-child(2) { width: 70%; }
}

@media (min-width: 721px) {
  .mh-burger { display: none; }
}