/* NeoYug Header Map - native header, flyout, announcement bar and footer.
 *
 * Everything is scoped under #nyhs-headers / .nyhs-footer so it beats any
 * leftover site rule on .neo_header (an ID in the selector outranks a bare
 * class). That matters during the changeover: the old sticky rule on
 * .neo_header can stay in place without fighting this file.
 *
 * Geometry and colour come from the CSS variables printed in <head> by
 * NYHS_Assets::inline_head(). The fallbacks below are only a safety net for a
 * page where that block did not run.
 */

.nyhs-root,
.nyhs-root * { box-sizing: border-box; }

.nyhs-root .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------- list reset

 * Every panel below is a <ul>. The UA sheet gives a ul
 * padding-inline-start: 40px, and a theme or MasterStudy rule can re-apply it
 * over our `padding` shorthand, which is where the dead space to the left of
 * the labels came from. Reset the logical property explicitly and put the
 * inset on the links instead.
 */
#nyhs-headers .nyhs__acctmenu,
#nyhs-headers .nyhs__sub,
#nyhs-headers .nyhs__menu,
#nyhs-headers .nyhs__flymenu,
#nyhs-headers .nyhs__flymenu ul,
#nyhs-headers .nyhs__flyacct ul,
.nyhs-footer .nyhs-links,
.nyhs-footer .nyhs-links ul,
.nyhs-social {
  padding-inline-start: 0;
  margin-inline-start: 0;
  text-indent: 0;
  list-style: none;
}
#nyhs-headers .nyhs__acctmenu > li,
/* The reset above zeroes the UL. The LI needs it too: Twenty Twenty styles
   `li` with margin-left, which leaked in and pushed every flyout item 20px
   further from the panel's left edge than from its right (26px vs 6px). */
#nyhs-headers .nyhs__sub > li,
#nyhs-headers .nyhs__menu > li,
#nyhs-headers .nyhs__flymenu li,
#nyhs-headers .nyhs__flyacct li,
.nyhs-footer .nyhs-links li,
.nyhs-social li {
  text-indent: 0;
  margin-left: 0;
  margin-inline-start: 0;
  padding-left: 0;
  padding-inline-start: 0;
}

/* ------------------------------------------------------- announcement bar */

#nyhs-headers .nyhs-announce {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: var(--nyhs-bar, 40px);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 18px;
  background: var(--nyhs-ann-bg, #8D22C3);
  color: var(--nyhs-ann-fg, #FFFFFF);
  font-size: 13.5px; font-weight: 500; line-height: 1.3; text-align: center;
}
#nyhs-headers .nyhs-announce__text { margin: 0; }
#nyhs-headers .nyhs-announce a {
  color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
#nyhs-headers .nyhs-announce__x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  appearance: none; border: 0; background: none; cursor: pointer;
  width: 34px; height: 34px; padding: 0; color: inherit;
  display: flex; align-items: center; justify-content: center;
}
#nyhs-headers .nyhs-announce__x svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- header */

#nyhs-headers .neo_header.nyhs {
  position: fixed; top: var(--nyhs-bar, 0px); left: 0; right: 0; z-index: 9999;
  height: var(--nyhs-h, 101px);
  display: flex; align-items: center;
  transition: height .2s ease, background-color .2s ease, box-shadow .2s ease;
}
@media (prefers-reduced-motion: reduce) {
  #nyhs-headers .neo_header.nyhs { transition: none; }
}

#nyhs-headers .nyhs__inner {
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 24px;
}
#nyhs-headers .nyhs__logo {
  display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; margin-right: auto;
}
#nyhs-headers .nyhs__logoimg { display: block; width: var(--nyhs-logo-w, 115px); height: auto; }
#nyhs-headers .nyhs__logotext { font-size: 20px; font-weight: 600; }

#nyhs-headers .nyhs__nav { display: flex; }
#nyhs-headers .nyhs__menu {
  list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0;
}
#nyhs-headers .nyhs__menu li { position: relative; }
#nyhs-headers .nyhs__menu > li > a {
  display: block; padding: 10px 13px; border-radius: 8px; text-decoration: none;
  font-size: 16px; font-weight: 400; line-height: 1.4; white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
#nyhs-headers .nyhs__menu li.menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

/* sub menus */
#nyhs-headers .nyhs__sub {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: calc(100% + 6px); left: 0;
  width: max-content; min-width: 180px; max-width: 320px;
  background: var(--nyhs-flyout-bg, #20153F); border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15, 8, 35, .34);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
#nyhs-headers .nyhs__menu li:hover > .nyhs__sub,
#nyhs-headers .nyhs__menu li:focus-within > .nyhs__sub,
#nyhs-headers .nyhs__menu li.is-open > .nyhs__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#nyhs-headers .nyhs__sub a {
  display: block; padding: 9px 13px; border-radius: 7px; text-decoration: none;
  font-size: 15px; color: #fff; white-space: nowrap;
}
#nyhs-headers .nyhs__sub a:hover,
#nyhs-headers .nyhs__sub a:focus-visible { background: rgba(255, 255, 255, .12); }

/* third level opens sideways */
#nyhs-headers .nyhs__sub .nyhs__sub { top: -6px; left: calc(100% + 6px); transform: translateX(-6px); }
#nyhs-headers .nyhs__sub li:hover > .nyhs__sub,
#nyhs-headers .nyhs__sub li:focus-within > .nyhs__sub,
#nyhs-headers .nyhs__sub li.is-open > .nyhs__sub { transform: translateX(0); }
#nyhs-headers .nyhs__sub li.menu-item-has-children > a::after {
  transform: rotate(-45deg); float: right; margin-top: 6px;
}

/* skins */
#nyhs-headers .nyhs--light .nyhs__menu > li > a { color: var(--nyhs-ink-light, #261A48); }
#nyhs-headers .nyhs--light .nyhs__menu > li > a:hover,
#nyhs-headers .nyhs--light .nyhs__menu > li > a:focus-visible { background: #F4E9FB; color: var(--nyhs-accent, #8D22C3); }
#nyhs-headers .nyhs--light .nyhs__menu > li.current-menu-item > a,
#nyhs-headers .nyhs--light .nyhs__menu > li.current-menu-ancestor > a { background: var(--nyhs-accent, #8D22C3); color: #fff; }

#nyhs-headers .nyhs--dark .nyhs__menu > li > a { color: var(--nyhs-ink-dark, #FAF9F6); }
#nyhs-headers .nyhs--dark .nyhs__menu > li > a:hover,
#nyhs-headers .nyhs--dark .nyhs__menu > li > a:focus-visible { background: rgba(255, 255, 255, .10); color: #E4C6F5; }
#nyhs-headers .nyhs--dark .nyhs__menu > li.current-menu-item > a,
#nyhs-headers .nyhs--dark .nyhs__menu > li.current-menu-ancestor > a { background: var(--nyhs-accent, #8D22C3); color: #fff; }

/* -------------------------------------------------------- right hand side */

#nyhs-headers .nyhs__right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

#nyhs-headers .nyhs__signin {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500;
  background: var(--nyhs-accent, #8D22C3); color: #fff; white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
#nyhs-headers .nyhs__signin:hover { background: #7a1cae; color: #fff; }
#nyhs-headers .nyhs--light .nyhs__signin {
  background: transparent; color: var(--nyhs-accent, #8D22C3);
  box-shadow: inset 0 0 0 1.5px var(--nyhs-accent, #8D22C3);
}
#nyhs-headers .nyhs--light .nyhs__signin:hover { background: var(--nyhs-accent, #8D22C3); color: #fff; }

#nyhs-headers .nyhs__acct { position: relative; }
#nyhs-headers .nyhs__acctbtn {
  appearance: none; border: 0; background: none; font: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 5px;
  border-radius: 999px; transition: background-color .16s ease;
}
#nyhs-headers .nyhs__acctbtn::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
#nyhs-headers .nyhs__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: var(--nyhs-accent, #8D22C3); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; line-height: 1;
}
#nyhs-headers .nyhs__acctname { font-size: 15px; font-weight: 500; }
#nyhs-headers .nyhs--light .nyhs__acctbtn { color: var(--nyhs-ink-light, #261A48); }
#nyhs-headers .nyhs--light .nyhs__acctbtn:hover { background: #F4E9FB; }
#nyhs-headers .nyhs--dark .nyhs__acctbtn { color: var(--nyhs-ink-dark, #FAF9F6); }
#nyhs-headers .nyhs--dark .nyhs__acctbtn:hover { background: rgba(255, 255, 255, .10); }

#nyhs-headers .nyhs__acctmenu {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: calc(100% + 8px); right: 0;
  width: max-content; min-width: 172px; max-width: 280px;
  background: var(--nyhs-flyout-bg, #20153F); border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15, 8, 35, .34);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
#nyhs-headers .nyhs__acct:hover .nyhs__acctmenu,
#nyhs-headers .nyhs__acct:focus-within .nyhs__acctmenu,
#nyhs-headers .nyhs__acct.is-open .nyhs__acctmenu { opacity: 1; visibility: visible; transform: translateY(0); }
#nyhs-headers .nyhs__acctmenu a {
  display: block; padding: 9px 13px; border-radius: 7px; text-decoration: none; font-size: 15px; color: #fff;
}
#nyhs-headers .nyhs__acctmenu a:hover,
#nyhs-headers .nyhs__acctmenu a:focus-visible { background: rgba(255, 255, 255, .12); }
#nyhs-headers .nyhs__acctmenu .nyhs__out { color: #E4C6F5; font-weight: 500; }

#nyhs-headers .nyhs__toggle {
  display: none; appearance: none; border: 0; background: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0;
  color: var(--nyhs-ink-dark, #FAF9F6);
}
#nyhs-headers .nyhs__toggle svg { display: block; width: 24px; height: 24px; }

/* -------------------------------------------------------- scrolled state */

.nyhs-scrolled #nyhs-headers .neo_header.nyhs {
  height: calc(var(--nyhs-h, 101px) * 0.76);
  box-shadow: 0 6px 24px rgba(20, 12, 40, .14);
}
.nyhs-scrolled #nyhs-headers .nyhs--light.neo_header { background: #FFFFFF; }
.nyhs-scrolled #nyhs-headers .nyhs--dark.neo_header { background: var(--nyhs-mobile-bg, #1A1336); }

/* --------------------------------------------------------------- flyout */

/* .nyhs__flyout carries display:flex, which would otherwise beat the [hidden]
 * attribute's UA rule and leave the panel tabbable while it sits offscreen. */
#nyhs-headers .nyhs__flyout[hidden],
#nyhs-headers .nyhs__scrim[hidden] { display: none; }

#nyhs-headers .nyhs__scrim {
  position: fixed; inset: 0; z-index: 10003;
  background: rgba(10, 6, 24, .55);
  opacity: 0; transition: opacity .22s ease;
}
.nyhs-open #nyhs-headers .nyhs__scrim { opacity: 1; }

#nyhs-headers .nyhs__flyout {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 10004;
  width: min(88%, 336px);
  background: var(--nyhs-flyout-bg, #20153F);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.22, .7, .3, 1);
  display: flex; flex-direction: column; overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nyhs-open #nyhs-headers .nyhs__flyout { transform: translateX(0); }
.nyhs-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  #nyhs-headers .nyhs__flyout,
  #nyhs-headers .nyhs__scrim { transition: none; }
}

#nyhs-headers .nyhs__flyhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 10px 20px; flex: 0 0 auto;
}
#nyhs-headers .nyhs__flylogo .nyhs__logoimg { width: var(--nyhs-logo-w-mobile, 94px); }
#nyhs-headers .nyhs__close {
  appearance: none; border: 0; background: none; color: #fff; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0;
}
#nyhs-headers .nyhs__close svg { width: 22px; height: 22px; }
#nyhs-headers .nyhs__flybody { flex: 1 1 auto; overflow-y: auto; padding: 0 16px 24px; }

/* account block inside the flyout */
#nyhs-headers .nyhs__flysignin {
  display: flex; align-items: center; justify-content: center; height: 48px;
  border-radius: 999px; background: var(--nyhs-accent, #8D22C3); color: #fff;
  text-decoration: none; font-size: 15.5px; font-weight: 500; margin: 0 0 18px;
}
#nyhs-headers .nyhs__flyacct {
  margin: 0 0 14px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .06);
}
#nyhs-headers .nyhs__flywho { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
#nyhs-headers .nyhs__flywhotext { display: block; min-width: 0; }
#nyhs-headers .nyhs__flywhotext strong {
  display: block; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3;
}
#nyhs-headers .nyhs__flywhotext span {
  display: block; color: rgba(255, 255, 255, .62); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#nyhs-headers .nyhs__flyacct ul { list-style: none; margin: 0; padding: 0; }
#nyhs-headers .nyhs__flyacct a {
  display: block; color: #CFC0EE; font-size: 14.5px; padding: 9px 10px;
  border-radius: 8px; text-decoration: none; min-height: 40px;
}
#nyhs-headers .nyhs__flyacct a:hover,
#nyhs-headers .nyhs__flyacct a:focus-visible { background: rgba(255, 255, 255, .10); color: #fff; }
#nyhs-headers .nyhs__flyacct .nyhs__out { color: #E4C6F5; font-weight: 500; }

/* flyout menu */
#nyhs-headers .nyhs__flymenu,
#nyhs-headers .nyhs__flymenu ul { list-style: none; margin: 0; padding: 0; }
#nyhs-headers .nyhs__flymenu > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
#nyhs-headers .nyhs__flymenu > li:last-child { border-bottom: 0; }
#nyhs-headers .nyhs__flyrow { display: flex; align-items: stretch; }
#nyhs-headers .nyhs__flymenu a {
  display: flex; align-items: center; flex: 1 1 auto; min-width: 0;
  color: #fff; text-decoration: none; font-size: 16px; font-weight: 500;
  padding: 13px 10px; min-height: 48px;
}
#nyhs-headers .nyhs__flymenu a:hover,
#nyhs-headers .nyhs__flymenu a:focus-visible { color: #E4C6F5; }
#nyhs-headers .nyhs__exp {
  appearance: none; border: 0; background: none; cursor: pointer;
  width: 48px; min-height: 48px; padding: 0; color: rgba(255, 255, 255, .72);
  display: flex; align-items: center; justify-content: center;
}
#nyhs-headers .nyhs__exp svg { width: 14px; height: 14px; transition: transform .2s ease; }
#nyhs-headers .nyhs__flymenu li.is-open > .nyhs__flyrow .nyhs__exp svg { transform: rotate(180deg); }

/* Nested levels. The old Elementor flyout painted these #8963BE on #20153F,
 * which lands around 2.4:1 and is unreadable on a phone in daylight. Depth now
 * reads from the indent and the rule; the colour only has to stay legible. */
#nyhs-headers .nyhs__flymenu li > ul {
  display: none; margin: 0 0 8px; padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, .16);
}
#nyhs-headers .nyhs__flymenu li.is-open > ul { display: block; }
#nyhs-headers .nyhs__flymenu li > ul a {
  color: #CFC0EE; font-size: 15px; font-weight: 400; padding: 10px; min-height: 44px;
}
#nyhs-headers .nyhs__flymenu li > ul a:hover,
#nyhs-headers .nyhs__flymenu li > ul a:focus-visible { color: #fff; }
#nyhs-headers .nyhs__flymenu li > ul ul {
  padding-left: 12px; border-left-color: rgba(255, 255, 255, .10);
}
#nyhs-headers .nyhs__flymenu li > ul ul a { color: rgba(255, 255, 255, .78); font-size: 14px; }

/* ------------------------------------------------------------- mobile bar */

@media (max-width: 767px) {
  #nyhs-headers .neo_header.nyhs {
    height: var(--nyhs-h-mobile, 72px);
    background: var(--nyhs-mobile-bg, #1A1336);
  }
  .nyhs-scrolled #nyhs-headers .neo_header.nyhs { height: calc(var(--nyhs-h-mobile, 72px) * 0.86); }
  #nyhs-headers .nyhs__inner { padding: 0 16px; gap: 8px; }
  #nyhs-headers .nyhs__logoimg { width: var(--nyhs-logo-w-mobile, 94px); }
  #nyhs-headers .nyhs__nav { display: none; }
  #nyhs-headers .nyhs__signin,
  #nyhs-headers .nyhs__acct { display: none; }
  #nyhs-headers .nyhs__toggle { display: flex; }
  #nyhs-headers .nyhs-announce { font-size: 12.5px; }
  /* Both skins share one mobile treatment, so the light skin's dark ink would
     vanish against the bar. */
  #nyhs-headers .nyhs--light .nyhs__toggle { color: var(--nyhs-ink-dark, #FAF9F6); }
}

@media (min-width: 768px) {
  #nyhs-headers .nyhs__flyout,
  #nyhs-headers .nyhs__scrim { display: none; }
}

/* ---------------------------------------------------------------- footer */

.nyhs-footer {
  background: var(--nyhs-footer-bg, #20153F);
  color: #fff;
  padding: 80px 0 30px;
}
.nyhs-footer * { box-sizing: border-box; }
.nyhs-footer__inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; display: flex; flex-wrap: wrap; }
/* Not four equal quarters. The brand column holds a logo and a row of social
   icons and needs roughly a third; the three link columns each hold a heading
   and three or four short links, and at 25% they were strung out across 330px
   apiece with most of it empty. Giving the brand 31% and the links 23% closes
   the gaps and lines the headings up on a sensible rhythm. */
.nyhs-footer__col { width: 23%; padding-right: 20px; }
.nyhs-footer__col--brand { width: 31%; }
.nyhs-footer__logoimg { display: block; margin-bottom: 20px; max-width: 100%; height: auto; }

.nyhs-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nyhs-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .10); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .16s ease;
}
.nyhs-social a:hover,
.nyhs-social a:focus-visible { background: var(--nyhs-accent, #8D22C3); }
.nyhs-social svg { width: 16px; height: 16px; fill: currentColor; }

.nyhs-footer__h { font-size: 22px; font-weight: 500; margin: 0 0 18px; color: #fff; line-height: 1.3; }
.nyhs-footer .nyhs-links,
.nyhs-footer .nyhs-links ul { list-style: none; margin: 0; padding: 0; }
.nyhs-footer .nyhs-links li { margin-bottom: 11px; }
.nyhs-footer .nyhs-links a {
  color: #fff; text-decoration: none; font-size: 16px; font-weight: 400; opacity: .92;
}
.nyhs-footer .nyhs-links a:hover,
.nyhs-footer .nyhs-links a:focus-visible { opacity: 1; color: #E4C6F5; }
.nyhs-footer .nyhs-footer__sub {
  margin: 10px 0 4px; padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, .16);
}
.nyhs-footer .nyhs-footer__sub a { font-size: 14.5px; color: #CFC0EE; opacity: 1; }
.nyhs-footer .nyhs-footer__sub a:hover { color: #fff; }

.nyhs-footer__bar {
  max-width: 1400px; margin: 34px auto 0; padding: 26px 32px 0;
  border-top: 1px solid rgba(217, 217, 217, .10);
}
.nyhs-footer__bar p { margin: 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .80); }

@media (max-width: 767px) {
  .nyhs-footer { padding: 50px 0 30px; }
  .nyhs-footer__inner { padding: 0 20px; }
  .nyhs-footer__col { width: 100%; margin-bottom: 26px; padding-right: 0; }
  .nyhs-footer__col--links { width: 50%; padding-right: 12px; }
  .nyhs-footer__h { font-size: 19px; margin-bottom: 14px; }
  .nyhs-footer .nyhs-links a { font-size: 14px; }
  .nyhs-footer__bar { padding: 22px 20px 0; }
}
