/* NYSC Enhancements v1.0.8 — unified site header.
   Additive: hides legacy chrome (.ny-topbar, header.ny-header, #masthead)
   and renders the new header injected via wp_body_open. Deactivate to revert. */

/* --- legacy chrome suppression --- */
.ny-topbar,
header.ny-header,
#masthead {
  display: none !important;
}

/* --- header shell --- */
.nysc-hdr-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #005cff;
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.nysc-hdr-skip:focus { left: 0; color: #fff; }
.nysc-hdr-topbar {
  background: #063567;
  color: #e6efff;
  font-size: 11.5px;
  padding: 8px 0;
  font-family: Arial, Helvetica, sans-serif;
}
.nysc-hdr-topbar .nysc-hdr-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nysc-hdr-topbar strong { color: #ffbb43; }
.nysc-hdr-disc { color: #b9cdf0; }
.nysc-hdr {
  background: #fff;
  border-bottom: 1px solid #e2ecf8;
  position: sticky;
  top: 0;
  z-index: 150;
  font-family: Arial, Helvetica, sans-serif;
  transition: box-shadow .2s ease;
}
.nysc-hdr.nysc-hdr-scrolled { box-shadow: 0 6px 24px rgba(0, 40, 120, .12); }
.nysc-hdr-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.nysc-hdr-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
}
.nysc-hdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #061c46 !important;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-decoration: none !important;
  flex-shrink: 0;
}
.nysc-hdr-brand svg { width: 38px; height: 38px; flex-shrink: 0; }

/* --- desktop nav --- */
.nysc-hdr-nav { display: flex; align-items: center; gap: 2px; }
.nysc-hdr-nav > a,
.nysc-hdr-dd > button {
  position: relative;
  color: #061c46;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 11px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nysc-hdr-nav > a::after,
.nysc-hdr-dd > button::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 5px;
  height: 3px;
  border-radius: 2px;
  background: #ff8500;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nysc-hdr-nav > a:hover,
.nysc-hdr-dd > button:hover,
.nysc-hdr-dd.nysc-open > button { color: #005cff; }
.nysc-hdr-nav > a:hover::after,
.nysc-hdr-dd > button:hover::after,
.nysc-hdr-dd.nysc-open > button::after { transform: scaleX(1); }
.nysc-hdr-caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  color: #526c91;
  transition: transform .2s ease;
}
.nysc-hdr-dd.nysc-open .nysc-hdr-caret { transform: rotate(180deg); }

/* --- dropdown panel --- */
.nysc-hdr-dd { position: relative; }
.nysc-hdr-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 248px;
  background: #fff;
  border: 1px solid #e2ecf8;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 40, 120, .16);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 160;
}
.nysc-hdr-dd:hover .nysc-hdr-panel,
.nysc-hdr-dd.nysc-open .nysc-hdr-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nysc-hdr-panel::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #e2ecf8;
  border-top: 1px solid #e2ecf8;
  transform: rotate(45deg);
}
.nysc-hdr-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #061c46;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.nysc-hdr-panel a:hover { background: #f3f8ff; color: #005cff; }
.nysc-hdr-div { height: 1px; background: #e2ecf8; margin: 6px 4px; }
.nysc-hdr-panel a.nysc-hdr-all { color: #005cff; font-weight: 800; }

/* --- CTA --- */
.nysc-hdr-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #005cff;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 9px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nysc-hdr-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 92, 255, .35);
  color: #fff !important;
}

/* --- mobile --- */
.nysc-hdr-burger {
  display: none;
  background: #edf4ff;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.nysc-hdr-burger svg { width: 20px; height: 20px; display: block; }
.nysc-hdr-mobile { display: none; }
@media (max-width: 940px) {
  .nysc-hdr-nav, .nysc-hdr-cta { display: none; }
  .nysc-hdr-burger { display: block; }
  .nysc-hdr-mobile {
    display: none;
    border-top: 1px solid #e2ecf8;
    padding: 6px 24px 18px;
    background: #fff;
  }
  .nysc-hdr-mobile.nysc-open { display: block; }
  .nysc-hdr-mobile a {
    display: block;
    padding: 11px 2px;
    color: #061c46;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    border-bottom: 1px solid #f0f5fc;
  }
  .nysc-hdr-mobile a.nysc-hdr-mhead { color: #005cff; }
  .nysc-hdr-mobile a.nysc-hdr-msub {
    padding-left: 18px;
    font-weight: 600;
    font-size: 13px;
    color: #324e77;
  }
  .nysc-hdr-mobile a.nysc-hdr-mcta {
    background: #005cff;
    color: #fff !important;
    text-align: center;
    border-radius: 9px;
    margin-top: 12px;
    border-bottom: 0;
    font-weight: 800;
  }
  .nysc-hdr-disc { display: none; }
}
