:root {
  --pa-navy: #081d33;
  --pa-navy-light: #142c4e;
  --pa-gold: #d4a017;
  --pa-gold-dark: #b9850e;
  --pa-white: #ffffff;
  --pa-off-white: #f9fafb;
  --pa-text: #172033;
  --pa-muted: #667085;
  --pa-border: #e8ecef;
}

.pa-topbar,
.pa-header,
.pa-header *,
.pa-topbar * {
  box-sizing: border-box;
}

.pa-topbar {
  position: relative;
  z-index: 9990;
  width: 100%;
  height: 36px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  background: var(--pa-navy);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.pa-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1280px);
  height: 100%;
  margin-inline: auto;
}

.pa-topbar__verse {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.pa-topbar__verse span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-topbar__verse strong {
  flex: 0 0 auto;
  color: var(--pa-gold);
  font-weight: 700;
}

.pa-topbar__socials,
.pa-header__drawer-socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pa-topbar__socials a,
.pa-header__drawer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.pa-topbar__socials a:hover,
.pa-topbar__socials a:focus-visible {
  color: var(--pa-gold);
  background: rgba(255, 255, 255, 0.08);
}

.pa-topbar svg,
.pa-header svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pa-header .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pa-topbar .pa-svg-fill,
.pa-header .pa-svg-fill,
.pa-topbar svg path:not([class]),
.pa-header__drawer-socials svg path:not([class]) {
  fill: currentColor;
  stroke: none;
}

.pa-topbar svg rect,
.pa-topbar svg circle,
.pa-topbar svg path[d^="m4"],
.pa-header__drawer-socials svg rect,
.pa-header__drawer-socials svg circle,
.pa-header__drawer-socials svg path[d^="m4"] {
  fill: none;
  stroke: currentColor;
}

.pa-header {
  position: relative;
  z-index: 9980;
  width: 100%;
  color: var(--pa-text);
  background: rgba(255, 255, 255, 0.985);
  border-bottom: 1px solid var(--pa-border);
  font-family: Inter, Arial, Helvetica, sans-serif;
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.pa-header--sticky {
  position: sticky;
  top: 0;
}

body.admin-bar .pa-header--sticky {
  top: 32px;
}

.pa-header--compact {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(8, 29, 51, 0.09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.pa-header__main {
  width: 100%;
  background: inherit;
}

.pa-header__container {
  display: grid;
  grid-template-columns: minmax(190px, 255px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(100% - 48px, 1280px);
  height: 88px;
  margin-inline: auto;
  transition: height 220ms ease;
}

.pa-header--compact .pa-header__container {
  height: 72px;
}

.pa-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pa-header__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 228px;
  line-height: 0;
}

.pa-header__brand .custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  transition: max-height 220ms ease;
}

.pa-header--compact .pa-header__brand .custom-logo {
  max-height: 48px;
}

.pa-header__text-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--pa-navy);
  text-decoration: none;
  line-height: 1;
}

.pa-header__text-logo-main {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.pa-header__text-logo-main span {
  color: var(--pa-gold-dark);
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: 0.14em;
  vertical-align: 0.14em;
}

.pa-header__text-logo-tagline {
  display: block;
  margin-top: 7px;
  padding-top: 6px;
  width: 100%;
  color: var(--pa-muted);
  border-top: 1px solid var(--pa-gold);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.185em;
  text-align: center;
  white-space: nowrap;
}

.pa-header__desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
}

.pa-header__desktop-menu,
.pa-header__desktop-menu .sub-menu,
.pa-header__mobile-menu,
.pa-header__mobile-menu .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pa-header__desktop-menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 1.45vw, 25px);
  min-width: 0;
}

.pa-header__desktop-menu > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.pa-header__desktop-menu a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--pa-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.pa-header__desktop-menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  height: 2px;
  background: var(--pa-gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 180ms ease;
}

.pa-header--compact .pa-header__desktop-menu > li > a::after {
  bottom: 17px;
}

.pa-header__desktop-menu a:hover,
.pa-header__desktop-menu a:focus-visible,
.pa-header__desktop-menu .current-menu-item > a,
.pa-header__desktop-menu .current-menu-ancestor > a,
.pa-header__desktop-menu .current_page_item > a,
.pa-header__desktop-menu .current_page_ancestor > a {
  color: var(--pa-gold-dark);
}

.pa-header__desktop-menu > li > a:hover::after,
.pa-header__desktop-menu > li > a:focus-visible::after,
.pa-header__desktop-menu > .current-menu-item > a::after,
.pa-header__desktop-menu > .current-menu-ancestor > a::after,
.pa-header__desktop-menu > .current_page_item > a::after,
.pa-header__desktop-menu > .current_page_ancestor > a::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.pa-header__desktop-menu .sub-menu {
  position: absolute;
  top: calc(100% - 12px);
  left: -18px;
  z-index: 20;
  width: max-content;
  min-width: 218px;
  max-width: 310px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  background: var(--pa-white);
  border: 1px solid var(--pa-border);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(8, 29, 51, 0.12);
  transform: translateY(8px);
  pointer-events: none;
  transition: visibility 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.pa-header__desktop-menu .sub-menu .sub-menu {
  top: -10px;
  left: calc(100% + 8px);
}

.pa-header__desktop-menu li:hover > .sub-menu,
.pa-header__desktop-menu li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pa-header__desktop-menu .sub-menu li {
  position: relative;
}

.pa-header__desktop-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: normal;
}

.pa-header__desktop-menu .sub-menu a:hover,
.pa-header__desktop-menu .sub-menu a:focus-visible {
  color: var(--pa-gold-dark);
  background: var(--pa-off-white);
}

.pa-header__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pa-header__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  color: var(--pa-navy);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
  appearance: none;
}

.pa-header__icon-button:hover {
  color: var(--pa-gold-dark);
  background: var(--pa-off-white);
  border-color: var(--pa-border);
}

.pa-header a:focus-visible,
.pa-header button:focus-visible,
.pa-topbar a:focus-visible,
.pa-header input:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.4);
  outline-offset: 3px;
}

.pa-header__menu-toggle {
  display: none;
}

.pa-header__search-panel {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pa-header__search-panel[hidden],
.pa-header__drawer[hidden],
.pa-header__backdrop[hidden] {
  display: none;
}

.pa-header--search-open .pa-header__search-panel {
  opacity: 1;
  transform: translateY(0);
}

.pa-header__search-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100% - 48px, 900px);
  margin-inline: auto;
}

.pa-header__search-form {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 52px;
  overflow: hidden;
  background: var(--pa-off-white);
  border: 1px solid var(--pa-border);
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pa-header__search-form:focus-within {
  border-color: var(--pa-gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.13);
}

.pa-header__search-form-icon {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: 17px;
  color: var(--pa-muted);
}

.pa-header__search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 14px;
  color: var(--pa-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 500 15px/1.4 Inter, Arial, Helvetica, sans-serif;
  appearance: none;
}

.pa-header__search-form input[type="search"]:focus {
  outline: 0;
}

.pa-header__search-form input[type="search"]::placeholder {
  color: var(--pa-muted);
  opacity: 0.92;
}

.pa-header__search-form input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.pa-header__search-submit {
  align-self: stretch;
  min-width: 102px;
  margin: 0;
  padding: 0 22px;
  color: var(--pa-white);
  background: var(--pa-navy);
  border: 0;
  border-radius: 0;
  font: 700 14px/1 Inter, Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease;
  appearance: none;
}

.pa-header__search-submit:hover,
.pa-header__search-submit:focus-visible {
  background: var(--pa-navy-light);
}

.pa-header__backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 18, 32, 0.62);
  opacity: 0;
  transition: opacity 220ms ease;
}

.pa-header__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(88vw, 420px);
  color: var(--pa-text);
  background: var(--pa-white);
  box-shadow: -14px 0 40px rgba(8, 29, 51, 0.16);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.pa-header--drawer-open .pa-header__backdrop {
  opacity: 1;
}

.pa-header--drawer-open .pa-header__drawer {
  transform: translateX(0);
}

.pa-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--pa-border);
}

.pa-header__drawer-brand {
  min-width: 0;
}

.pa-header__brand--drawer .custom-logo {
  max-height: 47px;
}

.pa-header__brand--drawer .pa-header__text-logo-main {
  font-size: 20px;
}

.pa-header__brand--drawer .pa-header__text-logo-tagline {
  font-size: 7.5px;
}

.pa-header__drawer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pa-header__mobile-nav {
  padding: 20px 22px 8px;
}

.pa-header__mobile-menu > li {
  position: relative;
  border-bottom: 1px solid var(--pa-border);
}

.pa-header__mobile-menu li {
  position: relative;
}

.pa-header__mobile-menu a {
  display: block;
  padding: 15px 46px 15px 3px;
  color: var(--pa-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease;
}

.pa-header__mobile-menu a:hover,
.pa-header__mobile-menu a:focus-visible,
.pa-header__mobile-menu .current-menu-item > a,
.pa-header__mobile-menu .current-menu-ancestor > a,
.pa-header__mobile-menu .current_page_item > a {
  color: var(--pa-gold-dark);
}

.pa-header__submenu-toggle {
  position: absolute;
  top: 7px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  padding: 0;
  color: var(--pa-navy);
  background: var(--pa-off-white);
  border: 1px solid var(--pa-border);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
}

.pa-header__submenu-toggle svg {
  transition: transform 180ms ease;
}

.pa-submenu-open > .pa-header__submenu-toggle svg {
  transform: rotate(180deg);
}

.pa-header__mobile-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 240ms ease, opacity 180ms ease;
}

.pa-header__mobile-menu .pa-submenu-open > .sub-menu {
  max-height: 900px;
  padding-bottom: 9px;
  opacity: 1;
}

.pa-header__mobile-menu .sub-menu a {
  margin: 2px 0 2px 12px;
  padding: 10px 14px;
  color: var(--pa-muted);
  border-left: 2px solid var(--pa-border);
  font-size: 14px;
  font-weight: 550;
}

.pa-header__mobile-menu .sub-menu .sub-menu a {
  margin-left: 25px;
}

.pa-header__drawer-footer {
  margin-top: auto;
  padding: 26px 22px 28px;
  background: var(--pa-navy);
}

.pa-header__drawer-footer p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.83);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.pa-header__drawer-socials {
  gap: 8px;
}

.pa-header__drawer-socials a {
  width: 36px;
  height: 36px;
  color: var(--pa-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pa-header__drawer-socials a:hover,
.pa-header__drawer-socials a:focus-visible {
  color: var(--pa-gold);
  background: rgba(255, 255, 255, 0.14);
}

body.pa-header-lock {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .pa-header__container {
    grid-template-columns: minmax(170px, 205px) minmax(0, 1fr) auto;
    gap: 14px;
    width: min(100% - 34px, 1160px);
  }

  .pa-header__brand .custom-logo-link {
    max-width: 190px;
  }

  .pa-header__text-logo-main {
    font-size: 21px;
  }

  .pa-header__text-logo-tagline {
    font-size: 7.5px;
  }

  .pa-header__desktop-menu {
    gap: clamp(9px, 1.15vw, 15px);
  }

  .pa-header__desktop-menu a {
    font-size: 12.8px;
  }
}

@media (max-width: 991px) {
  .pa-topbar__inner,
  .pa-header__container {
    width: min(100% - 40px, 920px);
  }

  .pa-topbar__inner {
    justify-content: center;
  }

  .pa-topbar__verse {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .pa-topbar__socials {
    display: none;
  }

  .pa-header__container {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    height: 76px;
  }

  .pa-header--compact .pa-header__container {
    height: 68px;
  }

  .pa-header__desktop-nav {
    display: none;
  }

  .pa-header__brand .custom-logo-link {
    max-width: 210px;
  }

  .pa-header__brand .custom-logo {
    max-height: 52px;
  }

  .pa-header--compact .pa-header__brand .custom-logo {
    max-height: 44px;
  }

  .pa-header__menu-toggle {
    display: inline-flex;
  }

  .pa-header__search-inner {
    width: min(100% - 40px, 760px);
  }

  body.admin-bar .pa-header__drawer {
    top: 32px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .pa-header--sticky {
    top: 46px;
  }

  body.admin-bar .pa-header__drawer {
    top: 46px;
  }
}

@media (max-width: 767px) {
  .pa-topbar {
    height: 32px;
  }

  .pa-topbar__inner,
  .pa-header__container {
    width: calc(100% - 32px);
  }

  .pa-topbar__verse {
    gap: 6px;
    font-size: 11px;
  }

  .pa-header__container {
    height: 70px;
  }

  .pa-header--compact .pa-header__container {
    height: 64px;
  }

  .pa-header__brand .custom-logo-link {
    max-width: 185px;
  }

  .pa-header__brand .custom-logo {
    max-height: 46px;
  }

  .pa-header__text-logo-main {
    font-size: 20px;
  }

  .pa-header__text-logo-tagline {
    margin-top: 5px;
    padding-top: 5px;
    font-size: 7.2px;
  }

  .pa-header__controls {
    gap: 2px;
  }

  .pa-header__icon-button {
    width: 39px;
    height: 39px;
  }

  .pa-header__search-inner {
    gap: 8px;
    width: calc(100% - 24px);
  }

  .pa-header__search-form {
    height: 48px;
  }

  .pa-header__search-form-icon {
    display: none;
  }

  .pa-header__search-form input[type="search"] {
    padding: 0 12px;
    font-size: 13.5px;
  }

  .pa-header__search-submit {
    min-width: 76px;
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .pa-header--sticky,
  body.admin-bar .pa-header__drawer {
    top: 0;
  }
}

@media (max-width: 479px) {
  .pa-topbar {
    display: none;
  }

  .pa-header__container {
    width: calc(100% - 24px);
    height: 64px;
  }

  .pa-header--compact .pa-header__container {
    height: 60px;
  }

  .pa-header__brand .custom-logo-link {
    max-width: 150px;
  }

  .pa-header__brand .custom-logo {
    max-height: 40px;
  }

  .pa-header__text-logo-main {
    font-size: 17px;
  }

  .pa-header__text-logo-main span {
    display: none;
  }

  .pa-header__text-logo-tagline {
    max-width: 128px;
    overflow: hidden;
    font-size: 6.4px;
    letter-spacing: 0.13em;
  }

  .pa-header__icon-button {
    width: 37px;
    height: 37px;
  }

  .pa-header__drawer {
    width: min(92vw, 380px);
  }

  .pa-header__drawer-head {
    min-height: 72px;
    padding-inline: 18px;
  }

  .pa-header__mobile-nav {
    padding-inline: 18px;
  }

  .pa-header__drawer-footer {
    padding-inline: 18px;
  }

  .pa-header__search-close {
    width: 34px;
    flex: 0 0 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-header *,
  .pa-topbar * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
