/*
 * Standard Punching Header 2.0
 * Every rule starts with .sph (the header) or .sphd (the mobile menu). The build step doubles those roots
 * so theme styles cannot override them. Colors match the rest of the site.
 */

.sph.sph, .sphd.sphd {
  --sph-indigo: #14246B; --sph-deep: #0E1A52; --sph-gold: #F2B01E; --sph-gold-hi: #FFC43D;
  --sph-fog: #EEF1F8; --sph-ink: #161E4B; --sph-muted: #4B5579; --sph-soft: #C9D0EE; --sph-line: #D5DBEA;
  --sph-focus: #14246B;
  --sph-gutter: clamp(20px, 4vw, 32px);
  --sph-bar: 76px;
  --sph-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --sph-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box; color: var(--sph-ink);
  font: 500 16px/1.4 var(--sph-body); letter-spacing: 0; text-align: left; text-transform: none; text-indent: 0;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.sph.sph *, .sph.sph *::before, .sph.sph *::after, .sphd.sphd *, .sphd.sphd *::before, .sphd.sphd *::after { box-sizing: border-box; }

.sph.sph a, .sphd.sphd a { color: inherit; text-decoration: none; background: none; border: 0; box-shadow: none; font-weight: inherit; }
.sph.sph ul, .sphd.sphd ul, .sph.sph li, .sphd.sphd li { list-style: none; margin: 0; padding: 0; }
.sph.sph li::marker, .sphd.sphd li::marker { content: ""; }
.sph.sph p, .sphd.sphd p { margin: 0; padding: 0; }
.sph.sph button, .sphd.sphd button {
  appearance: none; -webkit-appearance: none; font: inherit; color: inherit; background: none; border: 0; border-radius: 0;
  margin: 0; padding: 0; min-height: 0; min-width: 0; text-transform: none; letter-spacing: inherit; box-shadow: none;
  text-shadow: none; cursor: pointer; line-height: inherit;
}
.sph.sph img, .sphd.sphd img { display: block; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.sph.sph svg, .sphd.sphd svg { display: block; flex: none; fill: none; }
.sph.sph .sph-ic, .sphd.sphd .sph-ic { width: 22px; height: 22px; }
.sph.sph .sph-chev, .sphd.sphd .sph-chev { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .2s ease; }

.sph.sph :focus, .sphd.sphd :focus { outline: 0; }
.sph.sph :focus-visible, .sphd.sphd :focus-visible { outline: 3px solid var(--sph-focus); outline-offset: 3px; border-radius: 10px; }
.sph.sph .sph-feature { --sph-focus: #FFC43D; }

.sph.sph { position: relative; z-index: 9990; width: 100%; margin: 0; padding: 0; background: #fff; border-bottom: 1px solid var(--sph-line); transition: box-shadow .2s ease; }
.sph.sph.sph--sticky { position: sticky; top: 0; }
.sph.sph.is-stuck { box-shadow: 0 10px 28px -16px rgba(14, 26, 82, .45); }
body.admin-bar .sph.sph.sph--sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sph.sph.sph--sticky { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .sph.sph.sph--sticky { top: 0; } }

.sph.sph .sph-skip { position: absolute; left: 12px; top: -64px; z-index: 5; padding: 12px 18px; border-radius: 10px; background: var(--sph-indigo); color: #fff; font-weight: 700; }
.sph.sph .sph-skip:focus { top: 10px; outline: 3px solid var(--sph-gold-hi); outline-offset: 2px; }

.sph.sph .sph-wrap { width: 100%; max-width: 1200px; height: var(--sph-bar); margin: 0 auto; padding: 0 var(--sph-gutter); display: flex; align-items: center; gap: 28px; }
.sph.sph .sph-logo, .sphd.sphd .sph-logo { display: flex; align-items: center; flex: 0 0 auto; border-radius: 10px; }
.sph.sph .sph-logo__img { height: var(--sph-logo-h, 46px); width: auto; }
.sphd.sphd .sph-logo__img { height: 38px; width: auto; }

.sph.sph .sph-nav { flex: 1 1 auto; min-width: 0; align-self: stretch; }
.sph.sph .sph-list { display: flex; align-items: stretch; gap: 2px; height: 100%; }
.sph.sph .sph-item { display: flex; align-items: center; }
.sph.sph .sph-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 10px;
  font: 600 15.5px/1 var(--sph-body); color: var(--sph-ink); white-space: nowrap; transition: background-color .15s ease, color .15s ease;
}
.sph.sph .sph-link:hover, .sph.sph .sph-item--mega.is-open > .sph-trigger { background: var(--sph-fog); color: var(--sph-indigo); }
.sph.sph .sph-link.is-current { color: var(--sph-indigo); }

.sph.sph .sph-link.is-current::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--sph-indigo) 0 6px, transparent 6px 10px);
}
.sph.sph .sph-item--mega.is-open .sph-chev { transform: rotate(180deg); }

.sph.sph .sph-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }

.sph.sph .sph-cta, .sphd.sphd .sph-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 12px;
  background: var(--sph-gold); color: var(--sph-deep); font: 700 15.5px/1 var(--sph-body); white-space: nowrap; text-align: center;
  box-shadow: inset 0 -2px 0 rgba(14, 26, 82, .14); transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sph.sph .sph-cta:hover, .sphd.sphd .sph-cta:hover { background: var(--sph-gold-hi); color: var(--sph-deep); box-shadow: inset 0 -2px 0 rgba(14, 26, 82, .14), 0 12px 24px -12px rgba(224, 150, 0, .9); }
.sph.sph .sph-cta:active, .sphd.sphd .sph-cta:active { transform: translateY(1px); }

.sph.sph .sph-burger {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--sph-line);
  border-radius: 12px; background: #fff; color: var(--sph-indigo); transition: background-color .15s ease, border-color .15s ease;
}
.sph.sph .sph-burger:hover { background: var(--sph-fog); border-color: var(--sph-soft); }
.sph.sph .sph-burger .sph-ic { width: 24px; height: 24px; stroke-width: 2; }

.sph.sph .sph-draft, .sphd.sphd .sph-draft {
  display: inline-block; margin-left: 6px; padding: 3px 6px; border: 1px dashed #C99A1A; border-radius: 6px; background: #FFF4D6;
  color: #7A5600; font: 700 10.5px/1 var(--sph-body); letter-spacing: 0; vertical-align: middle; white-space: nowrap;
}

.sph.sph .sph-mega {
  position: absolute; left: 50%; top: 100%; z-index: 3; width: min(1136px, calc(100vw - 2 * var(--sph-gutter))); padding-top: 10px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -6px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.sph.sph .sph-mega:focus { outline: 0; }
.sph.sph .sph-item--mega.is-open > .sph-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.sph.sph .sph-mega__card {
  display: grid; grid-template-columns: minmax(270px, 32%) minmax(0, 1fr); overflow: hidden auto; border-radius: 18px; background: #fff;
  max-height: calc(100vh - var(--sph-bar) - 28px); overscroll-behavior: contain;
  box-shadow: 0 0 0 1px rgba(20, 36, 107, .08), 0 34px 70px -22px rgba(14, 26, 82, .42);
}

.sph.sph .sph-feature {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 28px 26px;
  background-color: var(--sph-deep); color: #fff;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 7px);
}
.sph.sph .sph-crest { width: 76px; height: 76px; margin: 0 0 6px -4px; }
.sph.sph .sph-feature__t { font: 700 23px/1.15 var(--sph-display); font-stretch: 92%; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.sph.sph .sph-feature__p { font-size: 14.5px; line-height: 1.55; color: var(--sph-soft); max-width: 34ch; }
.sph.sph .sph-ticks { display: grid; gap: 8px; margin: 4px 0 6px; }
.sph.sph .sph-ticks li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #fff; }
.sph.sph .sph-ticks .sph-ic { width: 18px; height: 18px; margin-top: 1px; color: var(--sph-gold); stroke-width: 2.4; }
.sph.sph .sph-feature__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 10px; }
.sph.sph .sph-feature .sph-cta:hover { background: var(--sph-gold-hi); }

.sph.sph .sph-svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; padding: 16px 16px 18px; align-content: center; }
.sph.sph .sph-svc > li { display: flex; min-width: 0; }
.sph.sph .sph-svc__a { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 14px; transition: background-color .15s ease; }
.sph.sph .sph-svc__a:hover { background: var(--sph-fog); }
.sph.sph .sph-svc__ic {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--sph-fog); color: var(--sph-indigo);
  transition: background-color .15s ease, color .15s ease;
}
.sph.sph .sph-svc__ic .sph-ic { width: 24px; height: 24px; }
.sph.sph .sph-svc__a:hover .sph-svc__ic, .sph.sph .sph-svc__a:focus-visible .sph-svc__ic { background: var(--sph-indigo); color: var(--sph-gold); }
.sph.sph .sph-svc__a[aria-current="page"] .sph-svc__ic { background: var(--sph-indigo); color: var(--sph-gold); }
.sph.sph .sph-svc__tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 1px; }
.sph.sph .sph-svc__t { font: 650 16px/1.25 var(--sph-display); font-stretch: 94%; letter-spacing: -.01em; color: var(--sph-ink); }
.sph.sph .sph-svc__a:hover .sph-svc__t { color: var(--sph-indigo); }
.sph.sph .sph-svc__a[aria-current="page"] .sph-svc__t { color: var(--sph-indigo); text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sph.sph .sph-svc__d { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--sph-muted); }

.sph.sph .sph-mega__main { display: flex; flex-direction: column; min-width: 0; }
.sph.sph .sph-mega__main .sph-svc { flex: 1 1 auto; }
.sph.sph .sph-mega__more { display: flex; flex-wrap: wrap; gap: 4px 26px; padding: 12px 30px; background: var(--sph-fog); border-top: 1px solid var(--sph-line); }
.sph.sph .sph-mega__more a { display: inline-flex; align-items: center; min-height: 32px; font-size: 15px; font-weight: 700; color: var(--sph-indigo); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .15s ease; }
.sph.sph .sph-mega__more a:hover { text-decoration-color: currentColor; }

.sphd.sphd {
  position: fixed; inset: 0; z-index: 100000; height: 100vh; height: 100dvh; visibility: hidden; pointer-events: none;
  transition: visibility 0s linear .3s;
}
.sphd.sphd.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.sphd.sphd .sphd__scrim { position: absolute; inset: 0; background: rgba(14, 26, 82, .58); opacity: 0; transition: opacity .28s ease; }
.sphd.sphd.is-open .sphd__scrim { opacity: 1; }
.sphd.sphd .sphd__sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22, .8, .24, 1); box-shadow: -24px 0 60px -20px rgba(14, 26, 82, .5);
}
.sphd.sphd.is-open .sphd__sheet { transform: none; }
.sphd.sphd .sphd__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; height: 68px; padding: env(safe-area-inset-top, 0) 16px 0 20px; box-sizing: content-box; border-bottom: 1px solid var(--sph-line); }
.sphd.sphd .sph-close {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--sph-line); border-radius: 12px; background: #fff; color: var(--sph-indigo);
}
.sphd.sphd .sph-close:hover { background: var(--sph-fog); }
.sphd.sphd .sph-close .sph-ic { width: 22px; height: 22px; stroke-width: 2.2; }

.sphd.sphd .sphd__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 14px; }
.sphd.sphd .sphd__item { border-bottom: 1px solid var(--sph-line); }
.sphd.sphd .sphd__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 12px 2px;
  font: 650 21px/1.2 var(--sph-display); font-stretch: 94%; letter-spacing: -.01em; color: var(--sph-ink);
}
.sphd.sphd .sphd__link:hover, .sphd.sphd .sphd__link.is-current { color: var(--sph-indigo); }
.sphd.sphd .sphd__link.is-current > span:first-child { text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sphd.sphd .sphd__acc .sph-chev { width: 20px; height: 20px; }
.sphd.sphd .sphd__acc[aria-expanded="true"] .sph-chev { transform: rotate(180deg); }
.sphd.sphd .sphd__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.sphd.sphd .sphd__acc[aria-expanded="true"] + .sphd__panel { grid-template-rows: 1fr; }
.sphd.sphd .sphd__panel-in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .26s; }
.sphd.sphd .sphd__acc[aria-expanded="true"] + .sphd__panel .sphd__panel-in { visibility: visible; transition-delay: 0s; }
.sphd.sphd .sph-svc--list { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0 0 12px; }
.sphd.sphd .sph-svc--list > li { display: block; }
.sphd.sphd .sph-svc__a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 7px 8px; border-radius: 12px; font: 600 16.5px/1.3 var(--sph-body); color: var(--sph-ink); }
.sphd.sphd .sph-svc__a:hover { background: var(--sph-fog); }
.sphd.sphd .sph-svc__ic { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: var(--sph-fog); color: var(--sph-indigo); }
.sphd.sphd .sph-svc__ic .sph-ic { width: 21px; height: 21px; }
.sphd.sphd .sph-svc__a[aria-current="page"] { color: var(--sph-indigo); }
.sphd.sphd .sph-svc__a[aria-current="page"] .sph-svc__ic { background: var(--sph-indigo); color: var(--sph-gold); }
.sphd.sphd .sph-svc__tx { display: block; }

.sphd.sphd .sphd__more { display: flex; flex-wrap: wrap; gap: 2px 22px; padding: 14px 2px 4px; }
.sphd.sphd .sphd__more a { display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; font-weight: 700; color: var(--sph-indigo); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.sphd.sphd .sphd__foot { flex: 0 0 auto; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0)); border-top: 2px dashed var(--sph-soft); background: #fff; }
.sphd.sphd .sph-cta--block { display: flex; width: 100%; height: 52px; font-size: 16.5px; }
.sphd.sphd .sphd__contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.sphd.sphd .sphd__contact { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14.5px; font-weight: 600; color: var(--sph-muted); }
.sphd.sphd .sphd__contact:hover { color: var(--sph-indigo); }
.sphd.sphd .sphd__contact .sph-ic { width: 18px; height: 18px; color: var(--sph-indigo); }

html.sph-lock, html.sph-lock body { overflow: hidden; }

@media (max-width: 1199.98px) {
  .sph.sph .sph-wrap { gap: 18px; }
  .sph.sph .sph-link { padding: 0 11px; font-size: 15px; }
  .sph.sph .sph-link.is-current::after { left: 11px; right: 11px; }
  .sph.sph .sph-cta { padding: 0 18px; }
  .sph.sph .sph-logo__img { height: min(var(--sph-logo-h, 46px), 42px); }
}
@media (max-width: 1023.98px) {
  .sph.sph { --sph-bar: 64px; }
  .sph.sph .sph-wrap { gap: 12px; }
  .sph.sph .sph-nav, .sph.sph .sph-mega { display: none; }
  .sph.sph .sph-burger { display: inline-flex; }
  .sph.sph .sph-logo__img { height: var(--sph-logo-hm, 38px); }
  .sph.sph .sph-cta--bar { height: 42px; padding: 0 16px; font-size: 15px; }
}

html.sph-compact .sph.sph { --sph-bar: 64px; }
html.sph-compact .sph.sph .sph-wrap { gap: 12px; }
html.sph-compact .sph.sph .sph-nav, html.sph-compact .sph.sph .sph-mega { display: none; }
html.sph-compact .sph.sph .sph-burger { display: inline-flex; }
html.sph-compact .sph.sph .sph-logo__img { height: var(--sph-logo-hm, 38px); }
html.sph-compact .sph.sph .sph-cta--bar { height: 42px; padding: 0 16px; font-size: 15px; }
@media (max-width: 399.98px) {
  .sph.sph .sph-cta--bar { display: none; }
}
@media (max-width: 340px) {
  .sph.sph .sph-logo__img { height: min(var(--sph-logo-hm, 38px), 32px); }
}
@media (min-width: 1024px) {
  html:not(.sph-compact) .sphd.sphd { display: none; }
}
@media (min-width: 1024px) and (max-width: 1100px) {
  .sph.sph .sph-mega__card { grid-template-columns: minmax(240px, 30%) minmax(0, 1fr); }
  .sph.sph .sph-svc__a { gap: 11px; padding: 11px 10px; }
}
@media (max-height: 520px) {
  .sphd.sphd .sphd__contacts { display: none; }
  .sphd.sphd .sphd__head { height: 56px; }
  .sphd.sphd .sph-cta--block { height: 46px; }
}

html:not(.sph-js) .sph.sph .sph-burger, html:not(.sph-js) .sphd.sphd { display: none; }
@media (max-width: 1023.98px) {
  html:not(.sph-js) .sph.sph .sph-wrap { height: auto; flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.sph-js) .sph.sph .sph-nav { display: block; order: 3; flex: 0 0 100%; align-self: auto; }
  html:not(.sph-js) .sph.sph .sph-list { flex-wrap: wrap; height: auto; }
  html:not(.sph-js) .sph.sph .sph-mega { display: block; position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; width: auto; padding: 0; }
  html:not(.sph-js) .sph.sph .sph-feature, html:not(.sph-js) .sph.sph .sph-trigger { display: none; }
  html:not(.sph-js) .sph.sph .sph-mega__card { display: block; box-shadow: none; }
  html:not(.sph-js) .sph.sph .sph-svc { display: flex; flex-wrap: wrap; gap: 0 14px; padding: 0; }
  html:not(.sph-js) .sph.sph .sph-svc__d, html:not(.sph-js) .sph.sph .sph-svc__ic { display: none; }
  html:not(.sph-js) .sph.sph .sph-svc__a { padding: 8px 4px; }
  html:not(.sph-js) .sph.sph .sph-svc__t { font-size: 14px; }
  html:not(.sph-js) .sph.sph .sph-item--mega { order: 9; flex: 0 0 100%; display: block; }
  html:not(.sph-js) .sph.sph .sph-mega__more { padding: 4px 4px 8px; background: none; border: 0; }
}
@media (min-width: 1024px) {
  html:not(.sph-js) .sph.sph .sph-item--mega:hover > .sph-mega, html:not(.sph-js) .sph.sph .sph-item--mega:focus-within > .sph-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
}

body.sph-hide-theme-header .site-header:not(.sph.sph),
body.sph-hide-theme-header #masthead:not(.sph.sph),
body.sph-hide-theme-header #site-header:not(.sph.sph),
body.sph-hide-theme-header header.wp-block-template-part:not(.sph.sph),
body.sph-hide-theme-header .wp-site-blocks > header:not(.sph.sph) { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sph.sph, .sph.sph *, .sph.sph *::before, .sph.sph *::after, .sphd.sphd, .sphd.sphd *, .sphd.sphd *::before, .sphd.sphd *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}
@media print { .sph.sph.sph--sticky { position: static; box-shadow: none; } .sph.sph .sph-burger, .sph.sph .sph-cta, .sphd.sphd { display: none !important; } }
