/* ==========================================================================
   Kingmichaelbeats LLC — brand overrides
   Loaded after page.css. Everything else is inherited from the base theme.
   ========================================================================== */

/* --- Logo mark ------------------------------------------------------------
   The nav logo is now an image (the endless-loop mark) rather than live text.
   The old text slot reserved ~190px for a long name; the mark is compact, so
   the slot collapses to fit it. `.brand-logo-img` is the main Webflow nav
   (home); `.site-logo-img` is the lighter header used on every other page. */
.navbar-logo {
  width: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  /* Match the white nav buttons (Login/Get Started) instead of the cream
     pc-plastic-1 the text slot used. */
  background-color: var(--primatives--static-white);
}

.brand-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

/* Drop the divider line under every subpage header. `header.<class>` beats
   the per-page `.<class>` border rule regardless of stylesheet order. */
header.gs-header,
header.lg-header,
header.dz-header,
header.fl-header,
header.gt-header,
header.pr-header,
header.sv-header,
header.lp-header {
  border-bottom: none;
  /* Only the top gap was too tall; leave the bottom at its original 1.3rem
     (horizontal padding is left to each page's own clamp). */
  padding-top: 0.55rem;
}

/* Subpage headers (.gs-logo/.lg-logo/.dz-logo/etc.) now wrap the mark.
   It's a round badge, so it carries a larger footprint than the wordmark. */
.site-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .brand-logo-img { height: 28px; }
  .site-logo-img { height: 50px; }
}

@media screen and (max-width: 479px) {
  .navbar-logo {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-logo-img { height: 26px; }
  .site-logo-img { height: 44px; }
}

/* --- Hero "now playing" panel ---------------------------------------------
   The video fills the window body; the track details sit on top of it over a
   scrim so they stay readable whatever frame is showing. The text is real
   markup rather than baked into the artwork, so the song name is editable. */
.cloudflare-video-embed {
  position: relative;
  background-color: var(--primatives--terminal-black);
  overflow: hidden;
}

.np-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Anchored to the top: the animated "start distributing" CTA owns the bottom
   of this window, so text there would collide with it. */
.np-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem 1.5rem 1.3rem;
  pointer-events: none;
  background: linear-gradient(to bottom,
              rgba(20, 2, 6, .88) 0%,
              rgba(20, 2, 6, .55) 38%,
              rgba(20, 2, 6, 0) 72%);
}

.np-overlay p {
  margin: 0;
}

.np-eyebrow {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--primatives--neon-field-1);
  margin-bottom: .5rem;
}

.np-title {
  font-family: var(--_typography---primary-font-family), "Suisse Intl", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primatives--pc-plastic-1);
  margin-bottom: .4rem;
}

.np-meta {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--primatives--pc-plastic-4);
}

@media screen and (max-width: 767px) {
  .np-overlay {
    padding: 1rem 1.1rem;
  }
  .np-title {
    font-size: 1.15rem;
  }
  .np-eyebrow,
  .np-meta {
    font-size: .62rem;
  }
}

/* --- Platform strip -------------------------------------------------------
   Wordmarks are drawn at a wider aspect than the logos they replace, so cap
   the height to keep the row visually even. */
.static_logo-img {
  max-height: 2.2rem;
}


/* --- Nav dropdown sizing tweaks ------------------------------------------
   Some menus were trimmed to fewer items; the original fixed widths/gaps
   left them looking oversized. These shrink them to fit their content. */

/* Royalties menu now holds a single link — collapse the 525px box. */
.dropdown-inner.is-linklist.is-api {
  width: auto;
  min-width: 240px;
  max-width: none;
}

/* Services / For Labels menus: tighten the gap under the group label. */
.dropdown-inner.is-linklist.is-solutions .dd-group,
.dropdown-inner.is-linklist.is-api .dd-group {
  grid-row-gap: .45rem;
  row-gap: .45rem;
}
.dropdown-inner.is-linklist.is-solutions .dd-group-label,
.dropdown-inner.is-linklist.is-api .dd-group-label {
  height: auto;
  margin-bottom: .4rem;
}

/* About menu trimmed to one group — shrink the oversized box. */
.dropdown-inner.is-linklist.is-research {
  width: auto;
  min-width: 240px;
  max-width: none;
}

/* Royalties menu holds a single link — collapse the label-to-link gap fully
   (the .dd-eyebrow's own margin-bottom was the main culprit). */
.dropdown-inner.is-linklist.is-api .dd-eyebrow { margin-bottom: 0; }
.dropdown-inner.is-linklist.is-api .dd-group-label { margin-bottom: 0; }
.dropdown-inner.is-linklist.is-api .dd-group { grid-row-gap: .3rem; row-gap: .3rem; }

/* Same tight label-to-link spacing for the Services (is-solutions) and
   About (is-research) menus. */
.dropdown-inner.is-linklist.is-solutions .dd-eyebrow,
.dropdown-inner.is-linklist.is-research .dd-eyebrow { margin-bottom: 0; }
.dropdown-inner.is-linklist.is-solutions .dd-group-label,
.dropdown-inner.is-linklist.is-research .dd-group-label { margin-bottom: 0; height: auto; }
.dropdown-inner.is-linklist.is-solutions .dd-group,
.dropdown-inner.is-linklist.is-research .dd-group { grid-row-gap: .3rem; row-gap: .3rem; }


/* --- Custom form validation card ------------------------------------------
   Replaces the browser's un-styleable native validation bubble. The JS in
   assets/js/form-validation.js suppresses the native popup and drops a
   `.field-error` card into the field's wrapper (marked `.has-field-error`).
   Styled to match the site's hard-border/offset-shadow card language. */
.has-field-error {
  position: relative;
}

.field-error {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  max-width: min(340px, 100%);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .7rem;
  background: var(--primatives--static-white, #fff);
  color: var(--primatives--terminal-black, #140206);
  border: 1.5px solid var(--primatives--terminal-black, #140206);
  box-shadow: 4px 4px 0 0 var(--primatives--terminal-black, #140206);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .74rem;
  line-height: 1.35;
  letter-spacing: .01em;
  pointer-events: none; /* never intercept clicks on the field below */
  animation: field-error-pop .12s ease-out;
}

/* Red round "!" badge to signal the error. */
.field-error::before {
  content: "!";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  border: 1.5px solid var(--primatives--terminal-black, #140206);
  font-family: var(--_typography---primary-font-family), Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
}

/* Little caret so the card reads as a pointer off the field. */
.field-error::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 16px;
  border: 6px solid transparent;
  border-bottom-color: var(--primatives--terminal-black, #140206);
}

@keyframes field-error-pop {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}

/* Flag the offending control itself. */
.gs-input.has-error,
.gs-select.has-error,
.gs-textarea.has-error {
  border-color: #e5484d !important;
  box-shadow: 0 0 0 2px rgba(229, 72, 77, .18);
}
