/* =========================================================
   Cliphorium — NAV/FOOTER FIX (CLEAN LOCK v2)
   - Fix black slab in header
   - Force all nav links visible (fix Analytics)
   - Footer layout already correct: logo left / links centered / copyright right
   - Header/footer rail match across ALL pages including PB
   ========================================================= */

:root{
  --ch-rail-max: 1240px;
  --ch-rail-pad: 18px;

  --text1: rgba(255,255,255,0.92);
  --text2: rgba(255,255,255,0.72);
  --text3: rgba(255,255,255,0.50);

  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
}

/* ===== Always show the real header/footer ===== */
header.ch-navbar,
footer.ch-footerbar{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* ===== Rail width match (header == footer) ===== */
.ch-navbar-inner,
.ch-footerbar-inner{
  max-width: var(--ch-rail-max) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: var(--ch-rail-pad) !important;
  padding-right: var(--ch-rail-pad) !important;
}

/* ===== KILL the black slab/box (header + footer wrappers) ===== */
header.ch-navbar,
footer.ch-footerbar,
.ch-navbar-inner,
.ch-footerbar-inner{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* kill any overlay bars/pseudos */
header.ch-navbar::before,
header.ch-navbar::after,
.ch-navbar-inner::before,
.ch-navbar-inner::after,
footer.ch-footerbar::before,
footer.ch-footerbar::after,
.ch-footerbar-inner::before,
.ch-footerbar-inner::after{
  content:none !important;
  display:none !important;
}

/* If there is an actual overlay element inside header causing a slab */
header.ch-navbar [class*="rail"],
header.ch-navbar [class*="bar"],
header.ch-navbar [class*="bg"],
header.ch-navbar [class*="overlay"]{
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== NAV LINKS: force visible + correct color (fix Analytics link “missing”) ===== */
.ch-navlinks{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
}

.ch-navlinks a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color: var(--text2) !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration:none !important;
  background:none !important;
  background-image:none !important;
  box-shadow:none !important;
  border-bottom:none !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
}

.ch-navlinks a:hover{
  color: var(--text1) !important;
  border: 1px solid rgba(212,175,55,0.35) !important;
}

/* explicitly ensure analytics link never gets hidden */
.ch-navlinks a[href="/analytics.html"]{
  display:inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== No lasers/underlines on header/footer links ===== */
header.ch-navbar a::before,
header.ch-navbar a::after,
footer.ch-footerbar a::before,
footer.ch-footerbar a::after,
header nav::before, header nav::after,
footer nav::before, footer nav::after{
  content:none !important;
  display:none !important;
}

/* ===== Footer layout: logo left / links centered / copyright right ===== */
.ch-footerbar-inner{
  display:grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items:center !important;
  gap: 18px !important;
}

.ch-footer-left{
  display:flex !important;
  align-items:center !important;
}

.ch-footlinks{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.ch-footlinks a{
  color: var(--text2) !important;
  font-weight:600 !important;
  letter-spacing:0.2px !important;
  text-decoration:none !important;
}

/* logo stays premium */
.ch-footer-left img{
  height:124px !important;
  width:auto !important;
  object-fit:contain !important;
  display:block !important;
}

/* copyright right */
.ch-footer-right{
  text-align:right !important;
  white-space:nowrap !important;
  color: var(--text3) !important;
}

/* ===== Push footer to bottom on short pages ===== */
html, body{ height:100%; }
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
main{ flex:1 1 auto; }
footer.ch-footerbar{ margin-top:auto !important; }
