/* ChordLab Song Core v1.0.16 — custom site header */

/* Replace Xwrite's standard and sticky headers with the ChordLab header. */
body.chordlab-custom-header .header,
body.chordlab-custom-header .header-fix{
  display:none!important;
}

.cl-site-header{
  position:sticky;
  top:0;
  z-index:9990;
  width:100%;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid #ececec;
  box-shadow:0 2px 10px rgba(20,24,32,.035);
  backdrop-filter:saturate(160%) blur(10px);
  -webkit-backdrop-filter:saturate(160%) blur(10px);
}

.cl-site-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:calc(100% - 40px);
  max-width:1440px;
  min-height:60px;
  margin:0 auto;
}

.cl-site-brand{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  color:#222!important;
  font-size:22px;
  font-weight:750;
  line-height:1;
  letter-spacing:-.02em;
  text-decoration:none!important;
}

.cl-site-brand:hover{
  opacity:.72;
}

.cl-site-nav-desktop{
  display:flex;
  align-items:center;
  gap:30px;
}

.cl-site-nav-desktop a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:60px;
  color:#444!important;
  font-size:14px;
  font-weight:600;
  line-height:1;
  text-decoration:none!important;
  white-space:nowrap;
}

.cl-site-nav-desktop a::after{
  content:"";
  position:absolute;
  left:50%;
  right:50%;
  bottom:0;
  height:2px;
  background:#222;
  transition:left .18s ease,right .18s ease;
}

.cl-site-nav-desktop a:hover{
  color:#111!important;
}

.cl-site-nav-desktop a:hover::after{
  left:0;
  right:0;
}

.cl-site-nav-mobile{
  display:none;
}

/* Header anchors should not land underneath the sticky header. */
#cl-song-search,
#cl-latest-songs{
  scroll-margin-top:78px;
}

@media(max-width:760px){
  .cl-site-header-inner{
    width:calc(100% - 28px);
    min-height:54px;
  }

  .cl-site-brand{
    font-size:20px;
  }

  .cl-site-nav-desktop{
    display:none;
  }

  .cl-site-nav-mobile{
    position:relative;
    display:block;
    margin:0;
    padding:0;
  }

  .cl-site-nav-mobile > summary{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    margin:0;
    padding:0;
    border:0;
    border-radius:8px;
    cursor:pointer;
    list-style:none;
    background:transparent;
  }

  .cl-site-nav-mobile > summary::-webkit-details-marker{
    display:none;
  }

  .cl-site-nav-mobile > summary:hover{
    background:#f6f6f6;
  }

  .cl-hamburger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:21px;
  }

  .cl-hamburger span{
    display:block;
    width:100%;
    height:2px;
    border-radius:999px;
    background:#333;
    transition:transform .18s ease,opacity .18s ease;
  }

  .cl-site-nav-mobile[open] .cl-hamburger span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }

  .cl-site-nav-mobile[open] .cl-hamburger span:nth-child(2){
    opacity:0;
  }

  .cl-site-nav-mobile[open] .cl-hamburger span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }

  .cl-site-nav-mobile nav{
    position:absolute;
    top:47px;
    right:0;
    width:min(280px,calc(100vw - 28px));
    overflow:hidden;
    border:1px solid #e9e9e9;
    border-radius:10px;
    background:#fff;
    box-shadow:0 12px 34px rgba(20,24,32,.13);
  }

  .cl-site-nav-mobile nav a{
    display:block;
    padding:14px 17px;
    border-bottom:1px solid #eee;
    color:#333!important;
    font-size:14px;
    font-weight:600;
    line-height:1.35;
    text-decoration:none!important;
  }

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

  .cl-site-nav-mobile nav a:hover{
    background:#f7f7f7;
  }

  #cl-song-search,
  #cl-latest-songs{
    scroll-margin-top:70px;
  }
}

/* Logged-in WordPress admin bar compatibility. */
@media(min-width:783px){
  body.admin-bar .cl-site-header{
    top:32px;
  }
}
@media(max-width:782px){
  body.admin-bar .cl-site-header{
    top:46px;
  }
}

/* Existing song-sidebar sticky offset (72px) remains compatible with
   the 60px ChordLab desktop header and leaves a small breathing space. */


/* =========================================================
   Chord Lab v1.0.23 — custom footer
   ========================================================= */

/* Xwrite footer/copyright is replaced by the Chord Lab footer. */
body.chordlab-custom-header .footer,
body.chordlab-custom-header .footer-fix,
body.chordlab-custom-header footer.footer,
body.chordlab-custom-header [class*="footer-copyright"]{
  display:none!important;
}

.cl-site-footer{
  width:100%;
  margin-top:72px;
  background:#2e2d2b;
  color:#fff;
}

.cl-site-footer-inner{
  width:calc(100% - 40px);
  max-width:1440px;
  margin:0 auto;
  padding:34px 0 17px;
}

.cl-site-footer-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.cl-site-footer-brand{
  flex:0 0 auto;
  color:#fff!important;
  font-size:22px;
  font-weight:800;
  line-height:1;
  text-decoration:none!important;
}

.cl-site-footer-brand:hover{
  opacity:.78;
}

.cl-site-footer-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:12px 28px;
}

.cl-site-footer-nav a{
  color:rgba(255,255,255,.84)!important;
  font-size:13px;
  font-weight:600;
  text-decoration:none!important;
  white-space:nowrap;
}

.cl-site-footer-nav a:hover{
  color:#fff!important;
  text-decoration:underline!important;
}

.cl-site-footer-copy{
  padding-top:16px;
  color:rgba(255,255,255,.62);
  font-size:11px;
  line-height:1.5;
  text-align:center;
}

@media(max-width:660px){
  .cl-site-footer{
    margin-top:48px;
  }

  .cl-site-footer-inner{
    width:calc(100% - 28px);
    padding:27px 0 16px;
  }

  .cl-site-footer-main{
    align-items:flex-start;
    flex-direction:column;
    gap:20px;
  }

  .cl-site-footer-brand{
    font-size:20px;
  }

  .cl-site-footer-nav{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
}


/* =========================================================
   Chord Lab v1.0.24 — footer legal links only
   ========================================================= */

.cl-site-footer .cl-site-footer-main{
  display:none!important;
}

.cl-site-footer-nav-legal{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:row!important;
  gap:28px!important;
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.cl-site-footer-nav-legal a{
  font-size:13px!important;
}

@media(max-width:660px){
  .cl-site-footer-nav-legal{
    flex-direction:row!important;
    flex-wrap:wrap!important;
    gap:12px 22px!important;
  }
}


/* =========================================================
   Chord Lab v1.0.26 — WordPress-editable header/footer menus
   ========================================================= */

.cl-site-nav-desktop .cl-site-nav-list{
  display:flex;
  align-items:center;
  gap:30px;
  margin:0;
  padding:0;
  list-style:none;
}

.cl-site-nav-desktop .cl-site-nav-list > li{
  margin:0;
  padding:0;
  list-style:none;
}

.cl-site-nav-mobile .cl-site-nav-list{
  margin:0;
  padding:0;
  list-style:none;
}

.cl-site-nav-mobile .cl-site-nav-list > li{
  margin:0;
  padding:0;
  list-style:none;
}

.cl-site-nav-mobile nav .cl-site-nav-list > li > a{
  border-bottom:0;
}

.cl-site-nav-mobile nav .cl-site-nav-list > li:not(:last-child) > a{
  border-bottom:1px solid #eee;
}

.cl-site-footer-nav-legal .cl-site-footer-menu-list{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px 28px;
  margin:0;
  padding:0;
  list-style:none;
}

.cl-site-footer-nav-legal .cl-site-footer-menu-list > li{
  margin:0;
  padding:0;
  list-style:none;
}

@media(max-width:660px){
  .cl-site-footer-nav-legal .cl-site-footer-menu-list{
    gap:12px 22px;
  }
}


/* =========================================================
   Chord Lab v1.0.35 — custom 404 page
   ========================================================= */

.cl-404{
  width:100%;
  min-height:calc(100vh - 220px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:72px 20px 96px;
  box-sizing:border-box;
}

.cl-404-inner{
  width:100%;
  max-width:760px;
  margin:0 auto;
  text-align:center;
}

.cl-404-title{
  margin:0;
  color:#4f4f4f;
  font-size:clamp(28px,4vw,42px);
  font-weight:800;
  line-height:1.35;
  letter-spacing:.01em;
}

.cl-404-text{
  margin:22px 0 0;
  color:#707070;
  font-size:16px;
  line-height:1.9;
}

.cl-404-home-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:34px;
  padding:13px 24px;
  border-radius:8px;
  background:#2d2c2a;
  color:#fff!important;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  text-decoration:none!important;
  transition:opacity .2s ease;
}

.cl-404-home-button:hover{
  opacity:.82;
}

@media(max-width:660px){
  .cl-404{
    min-height:calc(100vh - 180px);
    padding:58px 20px 72px;
  }

  .cl-404-title{
    font-size:28px;
  }

  .cl-404-text{
    margin-top:18px;
    font-size:15px;
  }

  .cl-404-home-button{
    margin-top:28px;
    width:100%;
    max-width:280px;
  }
}
