/* =========================================================================
   PFIN Mobile Navigation Drawer — rebuilt from scratch (2026-09-02)
   Fully self-contained: does not reuse or depend on any .offcanvas__*
   selectors from main.css, so it cannot be broken by vendor-theme changes.
   ========================================================================= */

/* Drawer is mobile/tablet only. On desktop it never renders or intercepts
   clicks, so the desktop nav is completely untouched. */
.pfin-drawer-open {
  display: none;
}

@media (max-width: 991px) {
  .pfin-drawer-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--white, #fff);
    font-size: 22px;
    padding: 6px 8px;
    cursor: pointer;
  }
}

.pfin-drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  visibility: hidden;
  pointer-events: none;
}

.pfin-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.pfin-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pfin-drawer.is-open .pfin-drawer__overlay {
  opacity: 1;
}

.pfin-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: var(--header, #7B0000);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 22px 32px;
}

.pfin-drawer.is-open .pfin-drawer__panel {
  transform: translateX(0);
}

.pfin-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pfin-drawer__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pfin-drawer__nav {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pfin-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pfin-drawer__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pfin-drawer__item > a {
  display: block;
  padding: 14px 0;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.pfin-drawer__item.active > a,
.pfin-drawer__item.active > .pfin-drawer__row > a {
  color: var(--theme, #FFD24C);
}

.pfin-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pfin-drawer__row > a {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 0;
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.pfin-drawer__row > a:hover,
.pfin-drawer__row > a:focus {
  color: var(--theme, #FFD24C) !important;
}

.pfin-drawer__sub-toggle {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pfin-drawer__sub-toggle i {
  transition: transform 0.2s ease;
}

.pfin-drawer__item--has-sub.is-expanded .pfin-drawer__sub-toggle i {
  transform: rotate(180deg);
}

.pfin-drawer__submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 12px 14px;
}

.pfin-drawer__submenu[hidden] {
  display: none;
}

.pfin-drawer__submenu a {
  display: block;
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  text-decoration: none;
}

.pfin-drawer__donate {
  border-bottom: 0;
  margin-top: 14px;
}

.pfin-drawer__donate a {
  text-align: center;
  background: var(--theme, #FFD24C);
  color: #1a1a1a;
  border-radius: 6px;
  padding: 13px 18px;
}

.pfin-drawer__contact {
  margin-top: 24px;
}

.pfin-drawer__contact-title {
  display: block;
  color: #fff;
  font-size: 20px;
  font-family: "Quicksand", sans-serif;
  margin-bottom: 10px;
}

.pfin-drawer__contact-group {
  margin-top: 12px;
}

.pfin-drawer__contact-label {
  display: block;
  color: #C1D2CE;
  font-size: 14px;
}

.pfin-drawer__contact-group p,
.pfin-drawer__contact-group p a {
  color: #fff;
  font-size: 15px;
  margin: 2px 0 0;
}

.pfin-drawer__social {
  margin-top: 26px;
}

.pfin-drawer__social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.pfin-drawer__social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
}

.pfin-drawer__social-icons a:hover {
  background: var(--theme, #FFD24C);
  color: #1a1a1a;
}

@media (min-width: 992px) {
  .pfin-drawer {
    display: none;
  }
}

body.pfin-drawer-locked {
  overflow: hidden;
}