/* =========================================================
   JUSTICE FOR KENDALL
   SHARED HEADER + OWNERSHIP BAR
   ========================================================= */


/* =========================================================
   OWNERSHIP / ATTRIBUTION BAR
   ========================================================= */

.ownership-bar {
  position: relative;
  z-index: 102;

  width: 100%;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  background: #07090c;
}

.ownership-bar-inner {
  width: min(1460px, calc(100% - 40px));

  margin: 0 auto;
  padding: 10px 0;

  color: #aeb6bf;

  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.005em;
  text-align: center;

  white-space: nowrap;
}

.ownership-bar-inner strong {
  color: #f7f8fa;
  font-weight: 850;
}

.owner-name {
  display: inline-block;
  white-space: nowrap;
}

.ownership-bar-inner a {
  color: #f7f8fa;

  font-weight: 850;

  white-space: nowrap;

  text-decoration: none;
  text-underline-offset: 3px;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.ownership-bar-inner a:visited {
  color: #f7f8fa;
}

.ownership-bar-inner a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ownership-bar-inner a:focus-visible {
  color: #ffffff;
  text-decoration: underline;

  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;

  border-bottom: 1px solid var(--border);

  background: rgba(11, 13, 16, 0.94);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;

  width: min(1180px, calc(100% - 40px));
  min-height: 78px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
  display: flex;
  align-items: center;

  flex: 0 1 auto;
  min-width: 0;

  gap: 12px;

  color: inherit;

  text-decoration: none;
}

.brand-text {
  display: block;

  color: var(--white);

  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  white-space: nowrap;
}

.brand:hover .brand-text {
  color: #ffffff;
}

.brand:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 5px;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex: 0 0 auto;

  gap: 28px;

  color: var(--muted);

  font-size: 0.94rem;
  font-weight: 650;
}

.nav a {
  display: inline-flex;
  align-items: center;

  color: inherit;

  white-space: nowrap;
  text-decoration: none;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}


/* =========================================================
   HAMBURGER BUTTON
   ========================================================= */

.menu-toggle {
  display: none;

  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 5px;

  padding: 0;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.03);
  color: var(--white);

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--border-strong);

  background: rgba(255, 255, 255, 0.06);

  outline: none;
}

.menu-toggle-line {
  display: block;

  width: 20px;
  height: 2px;

  flex: 0 0 2px;

  background: currentColor;

  transform-origin: center;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 820px) {

  .ownership-bar-inner {
    width: calc(100% - 32px);

    padding: 9px 0;

    font-size: 0.72rem;
    font-weight: 580;
    line-height: 1.4;
    letter-spacing: 0;

    white-space: normal;
  }

  .ownership-bar-inner strong,
  .ownership-bar-inner a {
    font-weight: 850;
  }

  .owner-name,
  .owner-name a {
    white-space: nowrap;
  }


  /* HEADER */

  .header-inner {
    width: calc(100% - 28px);
    min-height: 64px;

    gap: 14px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-text {
    overflow: hidden;

    font-size: 0.86rem;
    letter-spacing: 0.11em;

    text-overflow: ellipsis;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;

    display: inline-flex;

    width: 44px;
    height: 44px;

    flex: 0 0 44px;
  }


  /* =======================================================
     MOBILE DROPDOWN
     ======================================================= */

  .nav {
    position: absolute;

    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 101;

    display: none;

    width: 100%;

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    gap: 0;

    padding: 10px;

    border: 1px solid var(--border);
    border-top: 0;

    background: rgba(11, 13, 16, 0.99);

    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 46px;

    padding: 11px 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--muted);

    font-size: 0.9rem;
    font-weight: 650;

    white-space: nowrap;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    color: var(--white);

    background: rgba(255, 255, 255, 0.05);
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 440px) {

  .ownership-bar-inner {
    width: calc(100% - 24px);

    padding: 8px 0;

    font-size: 0.68rem;
    line-height: 1.38;

    white-space: normal;
  }

  .owner-name,
  .owner-name a {
    white-space: nowrap;
  }


  /* HEADER */

  .header-inner {
    width: calc(100% - 24px);
    min-height: 60px;

    gap: 12px;
  }

  .brand-text {
    font-size: 0.78rem;
    letter-spacing: 0.085em;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;
  }

  .menu-toggle-line {
    width: 19px;
  }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

  .ownership-bar-inner {
    width: calc(100% - 20px);

    padding: 8px 0;

    font-size: 0.64rem;
    line-height: 1.35;

    white-space: normal;
  }

  .owner-name,
  .owner-name a {
    white-space: nowrap;
  }


  /* HEADER */

  .header-inner {
    width: calc(100% - 20px);
    min-height: 58px;
  }

  .brand-text {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;
  }
}
