/* =====================================================
   PHIL HEADER AND NAVIGATION
====================================================== */

.phil-header {
  position: relative;
  width: 100%;
  min-height: 175px;
  z-index: 50;
}

/* =====================================================
   PAGE POSITIONING BELOW HEADER
====================================================== */

.phil-main-content {
  position: relative;
  z-index: 1;

  margin-top: 5rem;
}


/* =====================================================
   TOP HEADER BAND
====================================================== */

.phil-header-bar {
  position: relative;
  z-index: 4;
  display: flex;
  width: 100%;
  height: 112px;
  align-items: center;
  padding: 0 clamp(2rem, 7vw, 7rem);
  background: #4f50a2;
}


.phil-header-home {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  text-decoration: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}


.phil-header-home:hover {
  opacity: 1;
  transform: translateY(-2px);
}


.phil-header-home img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}


.phil-header-user {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: clamp(4rem, 10vw, 10rem);
  color: #ffffff;
  text-decoration: none;
}


.phil-header-greeting {
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}


.phil-header-profile-image {
  width: 94px;
  height: 94px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  object-fit: cover;
}


.phil-header-login {
  margin-left: auto;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

/* =====================================================
   PHIL HEADER HOME IMAGE
===================================================== */

.phil-header-bar .phil-header-home {
  display: flex;
  align-items: center;
  justify-content: center;

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

  padding: 0;
  margin: 0;

  opacity: 0.35;
  text-decoration: none;
}


.phil-header-bar .phil-header-home img {
  display: block;

  width: 100px;
  min-width: 100px;
  max-width: none;

  height: 100px;
  max-height: none;
  margin-top: 30px;

  object-fit: contain;
}


.phil-header-bar .phil-header-home:hover {
  opacity: 1;
  transform: translateY(-2px);
}


/* =====================================================
   PRONOUNCED WAVE
====================================================== */

.phil-header-wave {
  position: absolute;
  z-index: 3;
  top: 111px;
  left: 0;
  width: 100%;
  height: 145px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}


.phil-header-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}


.phil-header-wave path {
  fill: #4f50a2;
}


/* =====================================================
   RIGHT-SIDE DESKTOP TABS
====================================================== */

.phil-side-navigation {
  position: fixed;
  z-index: 100;

  top: 270px;
  right: 0;

  display: flex;
  flex-direction: column;
  gap: 22px;

  width: 155px;
}


.phil-side-tab {
  position: relative;

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

  width: 145px;
  min-height: 100px;

  margin-left: auto;

  padding: 1rem 0.9rem 1rem 1.35rem;

  color: #ffffff;

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

  border-top: 1px solid rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.28);
  border-left: 1px solid rgba(255,255,255,0.28);

  border-radius: 8px 0 0 8px;

  text-decoration: none;

  transition:
    width 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}



.phil-side-tab::before {
  content: "";

  position: absolute;

  top: 50%;
  left: -17px;

  width: 30px;
  height: 30px;

  background: #2d286b;

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

  transform:
    translateY(-50%)
    rotate(45deg);

  border-radius: 0 0 0 5px;
}


.phil-side-tab span {
  position: relative;
  z-index: 2;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;

  text-align: center;
  text-transform: uppercase;
}


.phil-side-tab:hover {
  width: 160px;

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

  border-color: rgba(255,255,255,0.45);

  transform: translateX(-4px);
}


.phil-side-tab:hover::before {
  background: #3b347f;
}


.phil-side-tab:focus-visible,
.phil-header-home:focus-visible,
.phil-header-user:focus-visible,
.phil-header-login:focus-visible {
  outline: 3px solid #f282aa;
  outline-offset: 4px;
}


/* =====================================================
   MOBILE MENU BUTTON
====================================================== */

.phil-mobile-menu-button {
  display: none;
  width: 48px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
}


.phil-mobile-menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}


/* =====================================================
   MOBILE NAVIGATION PANEL
====================================================== */

.phil-mobile-navigation {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1.5rem;
  background: #262262;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}


.phil-mobile-navigation[hidden] {
  display: none;
}


.phil-mobile-navigation a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}


/* =====================================================
   PAGE POSITIONING BELOW HEADER
====================================================== */

.phil-main-content {
  position: relative;
  z-index: 1;
}


/* =====================================================
   RESPONSIVE HEADER
====================================================== */

@media screen and (max-width: 1100px) {

  .phil-side-navigation {
    display: none;
  }


  .phil-mobile-menu-button {
    display: flex;
  }

}


@media screen and (max-width: 680px) {

  .phil-header {
    min-height: 145px;
  }


  .phil-header-bar {
    height: 92px;
    padding: 0 1.25rem;
  }


  .phil-header-wave {
    top: 91px;
    height: 110px;
  }


  .phil-header-home {
    width: 40px;
    height: 40px;
  }


  .phil-header-home img {
    width: 32px;
    height: 32px;
  }


  .phil-header-user {
    gap: 0.75rem;
    margin-left: 1.25rem;
  }


  .phil-header-greeting {
    font-size: 0.85rem;
  }


  .phil-header-profile-image {
    width: 64px;
    height: 64px;
  }

}


@media screen and (max-width: 460px) {

  .phil-header-greeting {
    display: none;
  }


  .phil-header-user {
    margin-left: 1rem;
  }


  .phil-mobile-navigation {
    grid-template-columns: 1fr;
  }

}

.phil-header-organization {
  display: flex;
  flex-direction: column;

  align-items: flex-end;
  justify-content: center;

  margin-left: auto;

  min-height: 112px;

  text-decoration: none;
}

.phil-header-organization-label {
  margin: 0;

  color: var(--phil-pink);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.phil-header-organization-name {
  margin-top: .2rem;

  font-size: 1rem;
  font-weight: 700;
}