
/* Public PBA site UX refresh */

body:not(.logged-in) {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f9fb;
  color: #17324a;
}

body:not(.logged-in) .site-header {
  background: var(--pba-chrome-bg);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

body:not(.logged-in) .site-header-inner {
  max-width: 1320px;
}

@media (min-width: 1280px) {
  body:not(.logged-in) .site-header-inner.pba-header-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
  }

  body:not(.logged-in) .pba-header-topbar {
    display: contents;
  }

  body:not(.logged-in) .site-branding {
    grid-column: 1;
    grid-row: 1;
  }

  body:not(.logged-in) .pba-header-navrow {
    grid-column: 2;
    grid-row: 1;
    min-height: 72px;
    padding: 8px 0;
    border: 0;
  }

  body:not(.logged-in) .pba-header-user-tools-top {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
  }

  body:not(.logged-in) .site-navigation {
    justify-content: center;
  }

  body:not(.logged-in) .site-header .pba-custom-menu {
    gap: 2px;
    flex-wrap: nowrap;
  }

  body:not(.logged-in) .site-header .pba-custom-menu > li > a,
  body:not(.logged-in) .site-header .pba-menu-dropdown-toggle {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 13px;
    border-radius: 10px;
  }

  body:not(.logged-in) .pba-site-logo {
    width: 58px;
    height: auto;
    flex-basis: 58px;
  }

  body:not(.logged-in) .pba-site-title {
    font-size: 1.28rem;
  }

  body:not(.logged-in) .pba-facebook-link,
  body:not(.logged-in) .header-login-btn {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }
}

body:not(.logged-in) .hero-image-wrap {
  margin: 0;
}

body:not(.logged-in) .hero-image {
  height: clamp(470px, 54vw, 610px);
  min-height: 470px;
}

.pba-public-hero-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.pba-public-hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

body:not(.logged-in) .hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 28, 49, .78) 0%, rgba(6, 28, 49, .52) 42%, rgba(6, 28, 49, .14) 72%, rgba(6, 28, 49, .04) 100%),
    linear-gradient(180deg, rgba(6, 28, 49, .05) 45%, rgba(6, 28, 49, .28) 100%);
}

body:not(.logged-in) .hero-overlay {
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  padding: 48px 0;
}

.pba-public-hero-copy {
  max-width: 690px;
}

.pba-public-hero-eyebrow {
  margin: 0 0 12px;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body:not(.logged-in) .hero-title-black {
  margin: 0 0 16px;
  max-width: 690px;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-shadow: 0 3px 18px rgba(0,0,0,.28);
}

body:not(.logged-in) .hero-subtitle-white {
  max-width: 650px;
  color: rgba(255,255,255,.95);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.pba-public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pba-public-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.pba-public-hero-button:hover,
.pba-public-hero-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.pba-public-hero-button-primary {
  background: #fff;
  color: var(--pba-control-primary) !important;
  border: 1px solid #fff;
}

.pba-public-hero-button-primary:hover,
.pba-public-hero-button-primary:focus-visible {
  background: #edf5fb;
}

.pba-public-hero-button-secondary {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}

.pba-public-hero-button-secondary:hover,
.pba-public-hero-button-secondary:focus-visible {
  background: rgba(255,255,255,.16);
}

.pba-public-home {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.pba-public-highlight {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid #d9e4ec;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(13,59,102,.07);
}

.pba-public-highlight-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf5fb;
  color: var(--pba-control-primary);
}

.pba-public-highlight-icon svg {
  width: 28px;
  height: 28px;
}

.pba-public-highlight-eyebrow,
.pba-public-card-eyebrow,
.pba-public-docs-eyebrow {
  margin: 0 0 5px;
  color: #6a8195;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pba-public-highlight h2 {
  margin: 0;
  color: #17324a;
  font-size: 1.3rem;
  line-height: 1.25;
}

.pba-public-highlight p {
  margin: 6px 0 0;
  color: #5a7083;
  line-height: 1.5;
}

.pba-public-text-link {
  color: var(--pba-control-primary) !important;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none !important;
}

.pba-public-text-link:hover,
.pba-public-text-link:focus-visible {
  text-decoration: underline !important;
}

.pba-public-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.pba-public-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(13,59,102,.045);
}

.pba-public-card h2 {
  margin: 0;
  color: #17324a;
  font-size: 1.26rem;
  line-height: 1.25;
}

.pba-public-card p {
  margin: 10px 0 0;
  color: #5a7083;
  line-height: 1.55;
}

.pba-public-card .pba-public-text-link {
  margin-top: auto;
  padding-top: 18px;
}

.pba-public-about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  padding: 28px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #f4f8fb, #f5f0e7);
  border: 1px solid #dce5ec;
  border-radius: 18px;
}

.pba-public-about h2 {
  margin: 0;
  color: #17324a;
  font-size: 1.8rem;
  line-height: 1.2;
}

.pba-public-about p {
  margin: 0 0 12px;
  color: #496176;
  line-height: 1.65;
}

.pba-public-docs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  background: var(--pba-control-primary);
  border-radius: 16px;
  color: #fff;
}

.pba-public-docs h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.pba-public-docs p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.82);
}

.pba-public-docs .pba-public-text-link {
  color: #fff !important;
}

@media (max-width: 1000px) {
  .pba-public-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pba-public-card:last-child {
    grid-column: 1 / -1;
  }

  .pba-public-about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:not(.logged-in) .hero-image {
    height: 500px;
    min-height: 500px;
    background-position: 58% center;
  }

  body:not(.logged-in) .hero-overlay {
    width: min(100% - 28px, 1180px);
  }

  .pba-public-home {
    width: min(100% - 28px, 1120px);
    padding-top: 24px;
  }

  .pba-public-highlight {
    grid-template-columns: auto 1fr;
    padding: 20px;
  }

  .pba-public-highlight .pba-public-text-link {
    grid-column: 2;
  }

  .pba-public-card-grid {
    grid-template-columns: 1fr;
  }

  .pba-public-card:last-child {
    grid-column: auto;
  }

  .pba-public-docs {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* PBA PRISCILLA BEACH HERO + PUBLIC NAV START */


/* =========================================================
   Real Priscilla Beach sunrise hero
   ========================================================= */

body:not(.logged-in) .hero-image {
    height: 460px;
    min-height: 460px;
    background-position: center 48%;
}


/*
 * The sunrise image has warmer tones and more open water than the
 * prior hero. Use a restrained navy gradient so the actual beach
 * remains visible while keeping white text readable.
 */
body:not(.logged-in) .hero-image::before {
    background:
        linear-gradient(
            90deg,
            rgba(6, 28, 49, 0.68) 0%,
            rgba(6, 28, 49, 0.46) 38%,
            rgba(6, 28, 49, 0.12) 68%,
            rgba(6, 28, 49, 0.02) 100%
        ),
        linear-gradient(
            180deg,
            rgba(6, 28, 49, 0.04) 42%,
            rgba(6, 28, 49, 0.16) 100%
        );
}

body:not(.logged-in) .pba-public-hero-copy {
    max-width: 630px;
}

body:not(.logged-in) .hero-title-black {
    font-size: clamp(2.6rem, 4.7vw, 4rem);
}


/* Slightly quieter secondary CTA */

body:not(.logged-in) .pba-public-hero-button-secondary {
    background: rgba(6, 28, 49, 0.14);
    border-color: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   Simplified public navigation
   ========================================================= */

body:not(.logged-in) .pba-public-portal-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
}

body:not(.logged-in) .pba-public-portal-menu > li {
    position: relative;
}

body:not(.logged-in)
.pba-public-portal-menu
> li.menu-item-has-children
> .pba-menu-dropdown-toggle {
    color: #ffffff !important;
}

/*
 * When a Community child page is active (Photos, Events, Pickleball,
 * Apparel), the parent dropdown receives current-menu-item and the base
 * header CSS gives it a white active background. Override the normal
 * public-nav white text here so the active label/caret remain readable.
 */
body:not(.logged-in)
.pba-public-portal-menu
> li.menu-item-has-children.current-menu-item
> .pba-menu-dropdown-toggle {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--pba-primary) !important;
}

body:not(.logged-in)
.pba-public-portal-menu
> li.menu-item-has-children.current-menu-item
> .pba-menu-dropdown-toggle:hover,
body:not(.logged-in)
.pba-public-portal-menu
> li.menu-item-has-children.current-menu-item
> .pba-menu-dropdown-toggle:focus-visible {
    background: #f3f7fb !important;
    border-color: #ffffff !important;
    color: var(--pba-primary) !important;
}

body:not(.logged-in)
.pba-public-portal-menu
> li.menu-item-has-children:hover
> .sub-menu,

body:not(.logged-in)
.pba-public-portal-menu
> li.menu-item-has-children:focus-within
> .sub-menu {
    display: block;
}

body:not(.logged-in)
.pba-public-portal-menu
.sub-menu {
    background: var(--pba-chrome-bg);
    border-color: rgba(255, 255, 255, 0.12);
}

body:not(.logged-in)
.pba-public-portal-menu
.sub-menu a:hover,

body:not(.logged-in)
.pba-public-portal-menu
.sub-menu a:focus-visible {
    background: var(--pba-control-primary-hover);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1279px) {

    body:not(.logged-in)
    .site-header-inner.pba-header-shell {
        display: flex;
        flex-direction: column;
    }

    body:not(.logged-in)
    .pba-header-navrow {
        width: 100%;
    }

    body:not(.logged-in)
    .site-navigation {
        width: 100%;
    }

    body:not(.logged-in)
    .pba-public-portal-menu {
        flex-wrap: wrap;
    }
}


/* =========================================================
   Mobile hero crop
   ========================================================= */

@media (max-width: 760px) {

    body:not(.logged-in) .hero-image {
        height: 470px;
        min-height: 470px;
        background-position: 54% center;
    }

    body:not(.logged-in) .hero-image::before {
        background:
            linear-gradient(
                90deg,
                rgba(6, 28, 49, 0.72) 0%,
                rgba(6, 28, 49, 0.48) 60%,
                rgba(6, 28, 49, 0.15) 100%
            );
    }
}

/* PBA PRISCILLA BEACH HERO + PUBLIC NAV END */

/* PBA HERO PHOTO TUNING START */

/*
 * Landscape Priscilla Beach sunset hero.
 * Preserve the natural blue/purple/orange tones and use only
 * a restrained left-side overlay for text readability.
 */

body:not(.logged-in) .hero-image {
    height: 480px;
    min-height: 480px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 52%;
}


/*
 * Very light overlay:
 * dark enough behind copy, but leaves most of the photograph intact.
 */

body:not(.logged-in) .hero-image::before {
    background:
        linear-gradient(
            90deg,
            rgba(5, 27, 48, 0.22) 0%,
            rgba(5, 27, 48, 0.14) 28%,
            rgba(5, 27, 48, 0.06) 48%,
            rgba(5, 27, 48, 0.015) 68%,
            rgba(5, 27, 48, 0.00) 100%
        );
}


/* Copy sizing */

body:not(.logged-in) .pba-public-hero-copy {
    max-width: 620px;
    transform: translateY(-18px);
}

body:not(.logged-in) .hero-title-black {
    max-width: 620px;
    color: #ffffff;

    font-size: clamp(2.45rem, 4.2vw, 3.5rem);
    line-height: 1.02;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.62),
        0 4px 14px rgba(0, 0, 0, 0.30);
}

body:not(.logged-in) .hero-subtitle-white {
    max-width: 610px;
    color: #ffffff;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.68),
        0 3px 9px rgba(0, 0, 0, 0.32);
}

body:not(.logged-in) .pba-public-hero-eyebrow {
    color: #ffffff;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.68),
        0 2px 7px rgba(0, 0, 0, 0.30);
}


/* Buttons */

body:not(.logged-in) .pba-public-hero-button-primary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--pba-control-primary) !important;
}

body:not(.logged-in) .pba-public-hero-button-secondary {
    background: rgba(7, 31, 52, 0.12);
    border-color: rgba(255, 255, 255, 0.78);

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.48);
}


/* Tablet */

@media (max-width: 900px) {
    body:not(.logged-in) .hero-image {
        height: 460px;
        min-height: 460px;
        background-position: 54% 55%;
    }
}


/* Mobile */

@media (max-width: 640px) {
    body:not(.logged-in) .hero-image {
        height: 480px;
        min-height: 480px;
        background-position: 58% 55%;
    }

    body:not(.logged-in) .hero-image::before {
        background:
            linear-gradient(
                90deg,
                rgba(5, 27, 48, 0.34) 0%,
                rgba(5, 27, 48, 0.20) 62%,
                rgba(5, 27, 48, 0.04) 100%
            );
    }

    body:not(.logged-in) .hero-title-black {
        font-size: clamp(2.3rem, 12vw, 3.05rem);
    }
}


    body:not(.logged-in) .pba-public-hero-copy {
        transform: translateY(-8px);
    }

/* PBA HERO PHOTO TUNING END */

/* PBA PUBLIC RESPONSIVE NAV + FOOTER START */


/* =========================================================
   Desktop public header
   ========================================================= */

.pba-public-menu-toggle,
.pba-public-mobile-actions {
    display: none;
}

@media (min-width: 901px) {

    body:not(.logged-in) .site-header-inner.pba-header-shell {
        max-width: 1320px;

        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;

        gap: 18px;
    }

    body:not(.logged-in) .pba-header-topbar {
        display: contents;
    }

    body:not(.logged-in) .site-branding {
        grid-column: 1;
        grid-row: 1;
    }

    body:not(.logged-in) .pba-header-navrow {
        display: flex !important;

        grid-column: 2;
        grid-row: 1;

        min-height: 72px;
        padding: 8px 0;
    }

    body:not(.logged-in) .pba-header-user-tools-top {
        grid-column: 3;
        grid-row: 1;

        margin-left: 0;
    }

    body:not(.logged-in) .site-navigation {
        justify-content: center;
    }
}


/* =========================================================
   Mobile public menu
   ========================================================= */

@media (max-width: 900px) {

    body:not(.logged-in) .site-header-inner.pba-header-shell {
        padding: 0 18px;

        display: flex;
        flex-direction: column;
    }

    body:not(.logged-in) .pba-header-topbar {
        width: 100%;
        min-height: 64px;

        padding: 8px 0;

        border-bottom: 0;
    }

    body:not(.logged-in) .pba-site-logo {
        width: 54px;
        height: auto;
        flex-basis: 54px;
    }

    body:not(.logged-in) .pba-site-title {
        font-size: 1.08rem;
    }

    body:not(.logged-in) .pba-header-user-tools-top {
        display: none;
    }

    body:not(.logged-in) .pba-header-navrow {
        position: relative;

        width: 100%;
        min-height: 0;

        padding: 0;
    }

    .pba-public-menu-toggle {
        position: absolute;

        right: 0;
        bottom: 14px;

        z-index: 5;

        display: inline-flex;
        align-items: center;
        gap: 8px;

        min-height: 40px;

        padding: 8px 11px;

        border: 1px solid rgba(255, 255, 255, 0.42);
        border-radius: 9px;

        background: transparent;

        color: #ffffff;

        font: inherit;
        font-weight: 700;

        cursor: pointer;
    }

    .pba-public-menu-toggle-icon {
        width: 18px;

        display: grid;
        gap: 4px;
    }

    .pba-public-menu-toggle-icon span {
        width: 18px;
        height: 2px;

        display: block;

        border-radius: 2px;

        background: currentColor;
    }

    body:not(.logged-in) .pba-header-navrow .site-navigation,
    body:not(.logged-in) .pba-public-mobile-actions {
        display: none;
    }

    body:not(.logged-in) .pba-header-navrow.is-open {
        padding: 10px 0 16px;
    }

    body:not(.logged-in)
    .pba-header-navrow.is-open
    .site-navigation,

    body:not(.logged-in)
    .pba-header-navrow.is-open
    .pba-public-mobile-actions {
        display: block;
    }

    body:not(.logged-in) .pba-public-portal-menu {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 3px;
    }

    body:not(.logged-in)
    .pba-public-portal-menu > li {
        width: 100%;
    }

    body:not(.logged-in)
    .site-header
    .pba-public-portal-menu > li > a,

    body:not(.logged-in)
    .site-header
    .pba-public-portal-menu > li > .pba-menu-dropdown-toggle {
        width: 100%;

        justify-content: space-between;

        padding: 11px 12px;
    }

    body:not(.logged-in)
    .pba-public-portal-menu
    .sub-menu {
        position: static;

        width: 100%;
        min-width: 0;

        margin: 3px 0 5px;
        padding: 5px;

        border-radius: 10px;

        box-shadow: none;

        background: rgba(0, 0, 0, 0.12);
    }

    body:not(.logged-in)
    .pba-public-portal-menu
    > li.menu-item-has-children:hover
    > .sub-menu,

    body:not(.logged-in)
    .pba-public-portal-menu
    > li.menu-item-has-children:focus-within
    > .sub-menu {
        display: none;
    }

    body:not(.logged-in)
    .pba-public-portal-menu
    > li.menu-item-has-children.is-open
    > .sub-menu {
        display: block;
    }

    body:not(.logged-in)
    .pba-public-portal-menu
    .sub-menu a {
        padding: 10px 12px;
    }

    .pba-public-mobile-actions {
        padding-top: 10px;

        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .pba-public-mobile-actions a {
        min-height: 42px;

        display: flex;
        align-items: center;

        padding: 9px 12px;

        border-radius: 9px;

        color: #ffffff !important;
        font-weight: 700;
        text-decoration: none !important;
    }

    .pba-public-mobile-actions a:hover,
    .pba-public-mobile-actions a:focus-visible {
        background: rgba(255, 255, 255, 0.12);

        outline: none;
    }
}


/* =========================================================
   Public footer
   ========================================================= */

body:not(.logged-in) .site-footer {
    margin-top: 0;

    background: var(--pba-chrome-bg);

    color: #ffffff;
}

.pba-public-footer-inner {
    width: min(1120px, calc(100% - 40px));

    margin: 0 auto;
    padding: 46px 0 24px;
}

.pba-public-footer-main {
    display: grid;

    grid-template-columns: minmax(0, 1.6fr) minmax(150px, .7fr) minmax(150px, .7fr);

    gap: 60px;

    padding-bottom: 34px;
}

.pba-public-footer-brand-link {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    color: #ffffff !important;

    font-size: 1.2rem;
    font-weight: 750;

    text-decoration: none !important;
}

.pba-public-footer-logo {
    width: 62px;
    height: 36px;

    object-fit: contain;
}

.pba-public-footer-brand p {
    max-width: 520px;

    margin: 16px 0 0;

    color: rgba(255, 255, 255, 0.72);

    line-height: 1.6;
}

.pba-public-footer-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
}

.pba-public-footer-column h2 {
    margin: 0 0 7px;

    color: rgba(255, 255, 255, 0.62);

    font-size: .72rem;
    font-weight: 750;

    letter-spacing: .09em;
    text-transform: uppercase;
}

.pba-public-footer-column a {
    color: #ffffff !important;

    font-weight: 600;

    text-decoration: none !important;
}

.pba-public-footer-column a:hover,
.pba-public-footer-column a:focus-visible {
    text-decoration: underline !important;

    outline: none;
}

.pba-public-footer-bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.14);

    color: rgba(255, 255, 255, 0.60);

    font-size: .85rem;
}


@media (max-width: 760px) {

    .pba-public-footer-inner {
        width: min(100% - 32px, 1120px);

        padding-top: 36px;
    }

    .pba-public-footer-main {
        grid-template-columns: 1fr 1fr;

        gap: 34px 28px;
    }

    .pba-public-footer-brand {
        grid-column: 1 / -1;
    }

    .pba-public-footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 4px;
    }
}


@media (max-width: 480px) {

    .pba-public-footer-main {
        grid-template-columns: 1fr;
    }

    .pba-public-footer-brand {
        grid-column: auto;
    }
}

/* PBA PUBLIC RESPONSIVE NAV + FOOTER END */

/* PBA MOBILE HEADER REFINEMENT START */

@media (max-width: 900px) {

    body:not(.logged-in) .site-header-inner.pba-header-shell {
        padding: 0 16px;
    }

    /*
     * Branding row:
     * logo/title left, hamburger right.
     */
    body:not(.logged-in) .pba-header-topbar {
        position: relative;

        min-height: 68px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        padding: 8px 0;

        border-bottom: 0;
    }

    body:not(.logged-in) .site-branding {
        min-width: 0;
        flex: 1 1 auto;
    }

    body:not(.logged-in) .pba-site-branding-link {
        gap: 9px;
    }

    body:not(.logged-in) .pba-site-logo {
        width: 50px;
        height: auto;
        flex: 0 0 50px;
    }

    body:not(.logged-in) .pba-site-title {
        overflow: hidden;

        font-size: 1.03rem;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /*
     * Hide desktop Facebook/login tools.
     */
    body:not(.logged-in) .pba-header-user-tools-top {
        display: none;
    }


    /*
     * Hamburger now lives beside branding.
     */
    body:not(.logged-in) .pba-public-menu-toggle {
        position: static;

        flex: 0 0 auto;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        gap: 7px;

        min-height: 40px;

        padding: 8px 10px;

        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 9px;

        background: transparent;

        color: #ffffff;

        font: inherit;
        font-size: .9rem;
        font-weight: 700;

        cursor: pointer;
    }

    body:not(.logged-in)
    .pba-public-menu-toggle:hover,

    body:not(.logged-in)
    .pba-public-menu-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.10);

        outline: none;
    }

    .pba-public-menu-toggle-icon {
        width: 17px;

        display: grid;

        gap: 4px;
    }

    .pba-public-menu-toggle-icon span {
        width: 17px;
        height: 2px;

        display: block;

        border-radius: 2px;

        background: currentColor;
    }


    /*
     * Collapsible menu panel.
     */
    body:not(.logged-in) .pba-header-navrow {
        width: 100%;

        display: block;

        min-height: 0;

        padding: 0;
    }

    body:not(.logged-in)
    .pba-header-navrow
    .site-navigation,

    body:not(.logged-in)
    .pba-header-navrow
    .pba-public-mobile-actions {
        display: none !important;
    }

    body:not(.logged-in)
    .pba-header-navrow.is-open {
        padding: 4px 0 14px;
    }

    body:not(.logged-in)
    .pba-header-navrow.is-open
    .site-navigation {
        display: block !important;
    }

    body:not(.logged-in)
    .pba-header-navrow.is-open
    .pba-public-mobile-actions {
        display: flex !important;
    }


    /*
     * Main navigation becomes one clean vertical list.
     */
    body:not(.logged-in)
    .pba-public-portal-menu {
        width: 100%;

        display: flex !important;
        flex-direction: column;
        align-items: stretch;

        gap: 2px;

        margin: 0;
        padding: 0;
    }

    body:not(.logged-in)
    .pba-public-portal-menu > li {
        width: 100%;
    }

    body:not(.logged-in)
    .site-header
    .pba-public-portal-menu > li > a,

    body:not(.logged-in)
    .site-header
    .pba-public-portal-menu > li > .pba-menu-dropdown-toggle {
        width: 100%;

        min-height: 43px;

        justify-content: space-between;

        padding: 10px 12px;

        border-radius: 9px;

        font-size: .96rem;

        text-align: left;
    }


    /*
     * Current page should be subtle on mobile.
     */
    body:not(.logged-in)
    .site-header
    .pba-public-portal-menu
    > li.current-menu-item
    > a {
        background: rgba(255, 255, 255, 0.94);

        color: var(--pba-control-primary) !important;
    }


    /*
     * Community submenu.
     */
    body:not(.logged-in)
    .pba-public-portal-menu
    .sub-menu {
        position: static;

        width: 100%;
        min-width: 0;

        margin: 2px 0 4px;
        padding: 4px 4px 4px 13px;

        border: 0;
        border-radius: 8px;

        background: rgba(0, 0, 0, 0.10);

        box-shadow: none;
    }

    body:not(.logged-in)
    .pba-public-portal-menu
    > li.menu-item-has-children:hover
    > .sub-menu,

    body:not(.logged-in)
    .pba-public-portal-menu
    > li.menu-item-has-children:focus-within
    > .sub-menu {
        display: none;
    }

    body:not(.logged-in)
    .pba-public-portal-menu
    > li.menu-item-has-children.is-open
    > .sub-menu {
        display: block;
    }


    /*
     * Facebook + Member login become ordinary full-width menu actions.
     */
    body:not(.logged-in)
    .pba-public-mobile-actions {
        flex-direction: column;

        gap: 2px;

        margin-top: 8px;
        padding-top: 8px;

        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    body:not(.logged-in)
    .pba-public-mobile-actions a {
        width: 100%;

        min-height: 42px;

        display: flex;
        align-items: center;

        padding: 9px 12px;

        border-radius: 9px;

        color: #ffffff !important;

        font-size: .95rem;
        font-weight: 700;

        text-decoration: none !important;
    }

    body:not(.logged-in)
    .pba-public-mobile-actions a:hover,

    body:not(.logged-in)
    .pba-public-mobile-actions a:focus-visible {
        background: rgba(255, 255, 255, 0.10);

        outline: none;
    }
}


/*
 * Very small phones: hide the word "Menu" if space gets tight.
 */
@media (max-width: 360px) {

    body:not(.logged-in)
    .pba-public-menu-toggle-label {
        display: none;
    }

    body:not(.logged-in)
    .pba-public-menu-toggle {
        width: 42px;

        padding-left: 11px;
        padding-right: 11px;
    }
}

/* PBA MOBILE HEADER REFINEMENT END */

/* PBA MOBILE TOPBAR ALIGNMENT START */

@media (max-width: 900px) {

    body:not(.logged-in) .pba-header-topbar {
        width: 100%;

        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;

        column-gap: 12px;

        min-height: 66px;
        padding: 8px 0;

        flex-wrap: nowrap !important;
    }

    body:not(.logged-in) .site-branding {
        grid-column: 1;
        grid-row: 1;

        min-width: 0;
        width: auto;
    }

    body:not(.logged-in) .pba-site-branding-link {
        width: 100%;

        display: flex;
        align-items: center;

        min-width: 0;
    }

    body:not(.logged-in) .pba-site-title {
        min-width: 0;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.logged-in) .pba-public-menu-toggle {
        grid-column: 2;
        grid-row: 1;

        position: static !important;

        margin: 0;

        align-self: center;
        justify-self: end;
    }

    body:not(.logged-in) .pba-header-navrow {
        margin: 0;
    }

    body:not(.logged-in) .pba-header-navrow.is-open {
        padding-top: 2px;
    }
}

/* PBA MOBILE TOPBAR ALIGNMENT END */

/* PBA AUTH PAGE UX START */


/* =========================================================
   Quiet authentication header
   ========================================================= */

/*
 * Login-page header
 *
 * Deliberately inherit the standard signed-out public header layout without
 * any login-specific positioning. This keeps the logo, primary navigation,
 * Facebook action, and right-side action in exactly the same locations as the
 * home page. header.php swaps only the Member login action for Back to website.
 */

/* =========================================================
   Authentication content

   ========================================================= */

body.page-template-page-login
.pba-auth-wrap {
    width: min(960px, calc(100% - 40px));
    max-width: 960px;

    margin: 0 auto;
}

body.page-template-page-login
.pba-login-shell {
    padding-top: 44px;
    padding-bottom: 54px;
}


/*
 * Login remains the dominant task.
 */

body.page-template-page-login
.pba-login-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.42fr)
        minmax(270px, .82fr);

    gap: 22px;

    align-items: start;
}


/* =========================================================
   Cards
   ========================================================= */

body.page-template-page-login
.pba-auth-card {
    border: 1px solid rgba(210, 222, 231, .95);
    border-radius: 16px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 12px 32px rgba(13,59,102,.10);
}

body.page-template-page-login
.pba-login-card {
    padding: 30px;
}

body.page-template-page-login
.pba-account-card {
    padding: 26px;

    background: rgba(255,255,255,.93);
}

body.page-template-page-login
.pba-login-card h1 {
    margin-bottom: 5px;

    font-size: clamp(2rem, 3vw, 2.45rem);

    letter-spacing: -.025em;
}

body.page-template-page-login
.pba-account-card h2 {
    margin-bottom: 5px;

    font-size: 1.55rem;

    letter-spacing: -.015em;
}

body.page-template-page-login
.pba-account-types-intro {
    margin-bottom: 20px;

    color: #5c7285;

    font-size: .91rem;
    line-height: 1.45;
}


/* =========================================================
   Form
   ========================================================= */

body.page-template-page-login
.pba-login-form {
    margin-top: 25px;
}

body.page-template-page-login
.pba-login-form input {
    min-height: 46px;

    border-color: #b9c9d6;
    border-radius: 8px;
}

body.page-template-page-login
.pba-login-actions button {
    min-height: 46px;

    border-radius: 8px;

    background: var(--pba-chrome-bg);
}

body.page-template-page-login
.pba-login-actions button:hover,

body.page-template-page-login
.pba-login-actions button:focus-visible {
    background: var(--pba-control-primary-hover);
}


/*
 * Password recovery is not an error state.
 */

body.page-template-page-login
.pba-form-help a {
    color: var(--pba-control-primary) !important;

    font-weight: 700;

    text-decoration: none;
}

body.page-template-page-login
.pba-form-help a:hover,

body.page-template-page-login
.pba-form-help a:focus-visible {
    text-decoration: underline;

    outline: none;
}


/* =========================================================
   Compact status notice
   ========================================================= */

body.page-template-page-login
.pba-login-shell > .pba-login-alert {
    width: calc(
        (100% - 22px) * .634
    );

    max-width: 600px;

    margin: 0 0 16px;

    padding: 11px 14px;

    border-radius: 10px;

    font-size: .9rem;

    box-shadow: 0 5px 16px rgba(13,59,102,.06);
}

body.page-template-page-login
.pba-login-alert-icon {
    width: 26px;
    height: 26px;

    flex-basis: 26px;

    font-size: .9rem;
}

body.page-template-page-login
.pba-login-alert-title {
    font-size: .92rem;
}


/* =========================================================
   Account choices
   ========================================================= */

body.page-template-page-login
.pba-account-option {
    border-radius: 11px;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        transform .15s ease;
}

body.page-template-page-login
button.pba-account-option:hover,

body.page-template-page-login
button.pba-account-option:focus-visible {
    border-color: #aec4d5;

    background: #f4f9fc;

    transform: translateY(-1px);

    outline: none;
}


/*
 * The member invitation panel is informational rather than
 * another equally prominent action.
 */

body.page-template-page-login
.pba-account-option-info {
    background: #f8fafb;

    border-style: solid;

    box-shadow: none;
}

body.page-template-page-login
.pba-account-option-action {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    margin-left: 8px;

    color: var(--pba-control-primary);

    font-size: .78rem;
    font-weight: 750;

    white-space: nowrap;
}


/* =========================================================
   Compact login footer
   ========================================================= */

body.page-template-page-login
.pba-public-footer-main {
    display: none;
}

body.page-template-page-login
.pba-public-footer-inner {
    padding-top: 17px;
    padding-bottom: 17px;
}

body.page-template-page-login
.pba-public-footer-bottom {
    padding-top: 0;

    border-top: 0;

    font-size: .82rem;
}


/* =========================================================
   Tablet / mobile
   ========================================================= */

@media (max-width: 760px) {

    body.page-template-page-login
    .site-header-inner.pba-header-shell {
        width: min(100% - 28px, 1120px);
    }

    body.page-template-page-login
    .pba-header-topbar {
        min-height: 64px;
    }

    body.page-template-page-login
    .pba-auth-wrap {
        width: min(100% - 28px, 960px);
    }

    body.page-template-page-login
    .pba-login-shell {
        padding-top: 28px;
        padding-bottom: 36px;
    }

    body.page-template-page-login
    .pba-login-layout {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    body.page-template-page-login
    .pba-login-shell > .pba-login-alert {
        width: 100%;
        max-width: none;
    }

    body.page-template-page-login
    .pba-login-card,

    body.page-template-page-login
    .pba-account-card {
        padding: 22px 20px;
    }
}


@media (max-width: 430px) {

    body.page-template-page-login
    .pba-site-title {
        font-size: .96rem;
    }

    body.page-template-page-login
    .pba-auth-back-link {
        padding-left: 10px;
        padding-right: 10px;

        font-size: .82rem;
    }

    body.page-template-page-login
    .pba-account-option {
        align-items: flex-start;
    }

    body.page-template-page-login
    .pba-account-option-action {
        margin-left: 0;
    }
}

/* PBA AUTH PAGE UX END */

/* PBA AUTH LAYOUT CORRECTION START */

body.page-template-page-login .pba-auth-wrap {
    width: min(1020px, calc(100% - 40px));
    max-width: 1020px;
}

body.page-template-page-login .pba-login-shell {
    padding-top: 52px;
    padding-bottom: 64px;
}


/* ---------------------------------------------------------
   Balanced desktop composition
   --------------------------------------------------------- */

body.page-template-page-login .pba-login-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 560px)
        minmax(330px, 370px);

    justify-content: center;
    align-items: start;

    gap: 28px;
}


/* Login remains the primary task */

body.page-template-page-login .pba-login-card {
    width: 100%;

    padding: 30px;
}


/* Account panel stays secondary, but no longer cramped */

body.page-template-page-login .pba-account-card {
    width: 100%;

    padding: 26px;
}

body.page-template-page-login .pba-account-card h2 {
    font-size: 1.55rem;
}

body.page-template-page-login .pba-account-types-intro {
    margin-bottom: 18px;

    font-size: .92rem;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Account option structure
   --------------------------------------------------------- */

:is(body.page-template-page-login, .pba-mobile-onboarding) .pba-account-option {
    width: 100%;

    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr);

    align-items: start;

    gap: 12px;

    padding: 14px;

    text-align: left;
}

:is(body.page-template-page-login, .pba-mobile-onboarding) .pba-account-option-icon {
    grid-column: 1;
    grid-row: 1;

    margin-top: 2px;
}

:is(body.page-template-page-login, .pba-mobile-onboarding) .pba-account-option-copy {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;
}

:is(body.page-template-page-login, .pba-mobile-onboarding) .pba-account-option-title {
    display: block;

    margin-bottom: 3px;

    font-size: 1rem;
    font-weight: 750;

    line-height: 1.25;
}

:is(body.page-template-page-login, .pba-mobile-onboarding) .pba-account-option-caption {
    display: block;

    color: #536b7f;

    font-size: .89rem;
    line-height: 1.42;
}


/*
 * Action belongs below the explanatory copy,
 * not squeezed into a narrow right-hand column.
 */
:is(body.page-template-page-login, .pba-mobile-onboarding) .pba-account-option-action {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin: 8px 0 0;

    color: var(--pba-control-primary);

    font-size: .86rem;
    font-weight: 750;

    white-space: normal;
}


/* Informational member box */

:is(body.page-template-page-login, .pba-mobile-onboarding) .pba-account-option-info {
    cursor: default;

    background: #f8fafb;
}

:is(body.page-template-page-login, .pba-mobile-onboarding) .pba-account-option-note {
    display: block;

    margin-top: 7px;

    color: #17324a;

    font-size: .86rem;
    font-weight: 700;

    line-height: 1.4;
}


/* ---------------------------------------------------------
   Status alert
   --------------------------------------------------------- */

body.page-template-page-login
.pba-login-shell > .pba-login-alert {
    width: min(560px, 100%);
    max-width: none;

    margin:
        0
        auto
        16px
        calc((100% - 958px) / 2);
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 980px) {

    body.page-template-page-login .pba-login-layout {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(300px, .8fr);
    }

    body.page-template-page-login
    .pba-login-shell > .pba-login-alert {
        width: 100%;
        margin-left: 0;
    }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 760px) {

    body.page-template-page-login .pba-login-layout {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    body.page-template-page-login .pba-login-card,
    body.page-template-page-login .pba-account-card {
        padding: 22px 20px;
    }
}

/* PBA AUTH LAYOUT CORRECTION END */

/* PBA AUTH FULL HEIGHT LAYOUT START */

/*
 * Keep the authentication footer at the actual bottom of the
 * browser window on short-content pages.
 */
body.page-template-page-login {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background: var(--pba-chrome-bg);
}

body.page-template-page-login .site-header {
    flex: 0 0 auto;
}

body.page-template-page-login .site-main.pba-login-page {
    flex: 1 0 auto;

    display: flex;
    flex-direction: column;
}

body.page-template-page-login .pba-login-backdrop {
    flex: 1 0 auto;

    display: flex;
    flex-direction: column;
}

body.page-template-page-login .pba-auth-wrap {
    flex: 1 0 auto;
}

body.page-template-page-login .site-footer {
    flex: 0 0 auto;

    margin-top: 0;
}

/* PBA AUTH FULL HEIGHT LAYOUT END */

/* PBA HEADER BRAND VERTICAL ALIGN START */

/*
 * Vertically center the PBA logo and site title on the
 * same visual centerline as the primary navigation.
 */
body:not(.logged-in) .site-branding {
    display: flex;
    align-items: center;
    align-self: stretch;
}

body:not(.logged-in) .site-branding .pba-site-branding-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

body:not(.logged-in) .pba-header-navrow {
    align-items: center;
}

/* PBA HEADER BRAND VERTICAL ALIGN END */

/* PBA PUBLIC CHROME FINAL START */

/*
 * Site chrome color comes only from:
 *
 *   --pba-chrome-bg
 *
 * Use background-color rather than background so image and
 * gradient treatments on public/home/login pages remain intact.
 */

/* Public/home header */
body:not(.logged-in) .site-header {
    background-color: var(--pba-chrome-bg) !important;
}

/* Public footer */
body:not(.logged-in) .site-footer {
    background-color: var(--pba-chrome-bg) !important;
}

/* Public navigation dropdown */
body:not(.logged-in)
.pba-public-portal-menu
.sub-menu {
    background-color: var(--pba-chrome-bg) !important;
}

/* Login header/footer only.
   DO NOT change the login page body background here. */
body.page-template-page-login .site-header,
body.page-template-page-login .site-footer {
    background-color: var(--pba-chrome-bg) !important;
}


/* =========================================================
   PUBLIC / LOGIN CONTROLS
   ========================================================= */

/* Login primary button */
body.page-template-page-login .pba-login-actions button {
    background-color: var(--pba-control-primary) !important;
    border-color: var(--pba-control-primary) !important;
    color: var(--pba-control-text) !important;
}

body.page-template-page-login .pba-login-actions button:hover,
body.page-template-page-login .pba-login-actions button:focus-visible {
    background-color: var(--pba-control-primary-hover) !important;
    border-color: var(--pba-control-primary-hover) !important;
}

/* PBA PUBLIC CHROME FINAL END */

/* PBA LOGIN BODY CHROME FIX START */

/*
 * Site chrome applies to the header/footer, not the login-page
 * canvas. Preserve the login page's watercolor/background treatment.
 */

body.page-template-page-login {
    background-color: transparent !important;
}

/* Header/footer continue to use the centralized chrome token. */

body.page-template-page-login .site-header,
body.page-template-page-login .site-footer {
    background-color: var(--pba-chrome-bg) !important;
}

/* Login controls use the centralized control token. */

body.page-template-page-login .pba-login-actions button {
    background-color: var(--pba-control-primary) !important;
    border-color: var(--pba-control-primary) !important;
    color: var(--pba-control-text) !important;
}

/* PBA LOGIN BODY CHROME FIX END */



/* =========================================================
   Authenticated public Home parity
   Logged-in members see the same public Home presentation as visitors.
   Only the site navigation changes with authentication.
   ========================================================= */
body.logged-in .hero-image-wrap {
    margin: 0;
}

body.logged-in .hero-image {
    height: 480px;
    min-height: 480px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 52%;
}

body.logged-in .hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(5, 27, 48, 0.22) 0%,
            rgba(5, 27, 48, 0.14) 28%,
            rgba(5, 27, 48, 0.06) 48%,
            rgba(5, 27, 48, 0.015) 68%,
            rgba(5, 27, 48, 0) 100%
        );
}

body.logged-in .hero-overlay {
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    padding: 48px 0;
}

body.logged-in .pba-public-hero-copy {
    max-width: 620px;
    transform: translateY(-18px);
}

body.logged-in .pba-public-hero-eyebrow {
    color: #fff;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.68),
        0 2px 7px rgba(0, 0, 0, 0.30);
}

body.logged-in .hero-title-black {
    margin: 0 0 16px;
    max-width: 620px;
    color: #fff;
    font-size: clamp(2.45rem, 4.2vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.62),
        0 4px 14px rgba(0, 0, 0, 0.30);
}

body.logged-in .hero-subtitle-white {
    max-width: 610px;
    color: #fff;
    font-size: clamp(1.05rem, 1.8vw, 1.24rem);
    line-height: 1.55;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.68),
        0 3px 9px rgba(0, 0, 0, 0.32);
}

body.logged-in .pba-public-hero-button-primary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--pba-control-primary) !important;
    border-color: #fff;
}

body.logged-in .pba-public-hero-button-secondary {
    background: rgba(7, 31, 52, 0.12);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.48);
}

@media (max-width: 900px) {
    body.logged-in .hero-image {
        height: 460px;
        min-height: 460px;
        background-position: 54% 55%;
    }
}

@media (max-width: 760px) {
    body.logged-in .hero-overlay {
        width: min(100% - 28px, 1180px);
    }
}

@media (max-width: 640px) {
    body.logged-in .hero-image {
        height: 480px;
        min-height: 480px;
        background-position: 58% 55%;
    }

    body.logged-in .hero-image::before {
        background:
            linear-gradient(
                90deg,
                rgba(5, 27, 48, 0.34) 0%,
                rgba(5, 27, 48, 0.20) 62%,
                rgba(5, 27, 48, 0.04) 100%
            );
    }

    body.logged-in .hero-title-black {
        font-size: clamp(2.3rem, 12vw, 3.05rem);
    }

    body.logged-in .pba-public-hero-copy {
        transform: translateY(-8px);
    }
}
/* Authenticated public Home parity end */


/* =========================================================
   About page - public graphic hero parity
   ========================================================= */
.pba-about-page {
    --pba-about-ink: #17323b;
    --pba-about-muted: #5c6f76;
    --pba-about-line: #d8e2e4;
    --pba-about-surface: #ffffff;
    --pba-about-accent-dark: #115e59;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--pba-about-ink);
}

.pba-about-page * {
    box-sizing: border-box;
}

.pba-about-feature-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    height: 340px;
    margin: -24px 0 28px calc(50% - 50vw);
    overflow: hidden;
    border-radius: 0;
    background: #dce9e4;
}

.pba-about-feature-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.pba-about-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20, 53, 89, 0.60) 0%,
        rgba(20, 53, 89, 0.20) 45%,
        rgba(20, 53, 89, 0.02) 80%
    );
    pointer-events: none;
}

.pba-about-feature-title {
    position: absolute;
    left: max(22px, calc((100% - 1120px) / 2 + 40px));
    top: 68px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.30);
}

.pba-about-page h2,
.pba-about-page h3 {
    margin: 0;
    color: var(--pba-about-ink);
    letter-spacing: 0;
}

.pba-about-page h2 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.2;
}

.pba-about-page h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.25;
}

.pba-about-page p {
    margin: 0 0 18px;
    color: var(--pba-about-muted);
    font-size: 16px;
    line-height: 1.55;
}

.pba-about-copy p:last-child {
    margin-bottom: 0;
}

.pba-about-panel {
    margin: 0 0 22px;
    padding: 24px;
    border: 1px solid var(--pba-about-line);
    border-radius: 8px;
    background: var(--pba-about-surface);
}

.pba-about-copy a {
    color: var(--pba-about-accent-dark);
    font-weight: 700;
}

@media (max-width: 780px) {
    .pba-about-feature-hero {
        height: 230px;
        margin-bottom: 20px;
    }

    .pba-about-feature-title {
        left: 22px;
        top: 69px;
    }

    .pba-about-panel {
        padding: 20px;
    }
}
/* About page end */


/* Home beta welcome panel */
.pba-public-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, .9fr);
    align-items: center;
    gap: 0;
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid #e7ddc7;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffdf8 0%, #fbf6eb 100%);
    box-shadow: 0 3px 14px rgba(15, 50, 59, 0.04);
}

.pba-public-welcome-main,
.pba-public-welcome-member {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
}

.pba-public-welcome-member {
    min-height: 96px;
    border-left: 1px solid #ddd7c9;
}

.pba-public-welcome-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e8f3fb;
    color: #0d4a80;
}

.pba-public-welcome-icon-members {
    background: #edf4fb;
}

.pba-public-welcome-icon svg {
    width: 34px;
    height: 34px;
}

.pba-public-welcome h2 {
    margin: 0 0 6px;
    color: #103b60;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.pba-public-welcome p {
    margin: 0;
    color: #58728a;
    font-size: 1rem;
    line-height: 1.5;
}

.pba-public-welcome-member strong {
    color: #103b60;
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 860px) {
    .pba-public-welcome {
        grid-template-columns: 1fr;
    }

    .pba-public-welcome-member {
        border-top: 1px solid #ddd7c9;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .pba-public-welcome-main,
    .pba-public-welcome-member {
        align-items: flex-start;
        padding: 20px;
    }

    .pba-public-welcome-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .pba-public-welcome-icon svg {
        width: 28px;
        height: 28px;
    }
}
/* Home beta welcome panel end */


/* Mobile home entry point and compact authentication presentation. */
.pba-mobile-onboarding,
.pba-mobile-account-intro,
.pba-mobile-registration-intro { display: none; }

@media (max-width: 767px) {
  .pba-mobile-onboarding {
    display: block;
    padding: 22px 20px 24px;
    background: #fff;
    color: #173e65;
  }
  .pba-mobile-onboarding-eyebrow {
    margin: 0 0 8px;
    color: #2866a3;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
  }
  .pba-mobile-onboarding h2 {
    margin: 0 0 8px;
    color: #173e65;
    font-size: clamp(1.65rem, 6vw, 2rem);
    line-height: 1.18;
  }
  .pba-mobile-onboarding > p:not(.pba-mobile-onboarding-eyebrow) {
    margin: 0 0 16px;
    color: #455568;
    line-height: 1.45;
  }
  .pba-mobile-onboarding-choice {
    padding: 14px;
    background: #f1f6fb;
    border-radius: 12px;
  }
  .pba-mobile-onboarding-choice p {
    margin: 4px 0 14px;
    color: #455568;
    font-size: .92rem;
    line-height: 1.4;
  }
  .pba-mobile-onboarding-primary,
  .pba-mobile-onboarding-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 9px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
  }
  .pba-mobile-onboarding-primary { gap: 8px; background: #2366a6; color: #fff !important; }
  .pba-mobile-onboarding-secondary { margin-top: 10px; border: 1px solid #9cb8d3; color: #173e65 !important; }
  .pba-mobile-onboarding-primary:focus-visible,
  .pba-mobile-onboarding-secondary:focus-visible { outline: 3px solid #78b7ee; outline-offset: 3px; }
  .hero-image-wrap .hero-image { height: auto; min-height: 260px; }
  .hero-image-wrap .hero-overlay { position: relative; width: 100%; min-height: 260px; padding: 25px 20px; }
  .hero-image-wrap .pba-public-hero-copy { max-width: 100%; }
  .hero-image-wrap .hero-title-black { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-image-wrap .hero-subtitle-white { font-size: 1rem; line-height: 1.42; }
  .hero-image-wrap .pba-public-hero-actions { gap: 8px; }
  .hero-image-wrap .pba-public-hero-button { min-height: 44px; padding: 9px 12px; font-size: .92rem; }
  .pba-login-page .pba-login-backdrop { padding: 10px 0 26px; background-image: none; background-color: #f1f6fb; }
  .pba-login-page .pba-login-shell { width: min(100% - 20px, 560px); padding: 0; }
  .pba-login-page .pba-login-alert.pba-login-beta-notice {
    width: 100%; margin: 0 0 10px; padding: 9px 12px; gap: 9px;
    box-shadow: none; font-size: .88rem; line-height: 1.35;
  }
  .pba-login-page .pba-login-beta-notice .pba-login-alert-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .pba-login-page .pba-login-layout { gap: 12px; }
  .pba-login-page .pba-auth-card { padding: 18px 16px; }
  .pba-login-page .pba-login-card h1 { margin-bottom: 6px; }
  .pba-login-page .pba-auth-form input:not([type="hidden"]),
  .pba-login-page .pba-auth-form select { min-height: 44px; }
  .pba-login-page .pba-form-actions button { min-height: 44px; }
  .pba-mobile-account-intro, .pba-mobile-registration-intro { display: block; font-size: .93rem; line-height: 1.4; }
  .pba-login-page .pba-register-info { padding: 12px; margin: 12px 0; }
  .pba-login-page .pba-register-info p { margin-bottom: 8px; }
}

/* Keep desktop sign-in and onboarding panels close to the header. */
@media (min-width: 761px) {
  body.page-template-page-login .pba-login-backdrop {
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 32px;
  }

  body.page-template-page-login .pba-login-shell {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.page-template-page-login .pba-login-shell > .pba-login-beta-notice {
    width: min(958px, 100%);
    margin: 0 auto 16px;
  }
}


/* One account-choice screen across desktop, tablet and mobile. */
.pba-account-intro,
.pba-registration-intro { font-size:.93rem; line-height:1.4; }
#pba-account-title { scroll-margin-top:110px; }
@media (max-width:980px) {
  body.page-template-page-login .pba-login-backdrop { min-height:0; padding:16px 0 24px; }
  body.page-template-page-login .pba-login-shell { width:min(720px,calc(100% - 28px)); padding:0; }
  body.page-template-page-login .pba-login-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
  body.page-template-page-login .pba-login-card,
  body.page-template-page-login .pba-account-card { max-width:none; width:100%; }
}

/* Mobile home uses the same account choices and copy as the login page. */
.pba-mobile-onboarding .pba-account-option {
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid #b9cedf;
  border-radius: 11px;
  background: #fff;
  color: #173e65;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.pba-mobile-onboarding .pba-account-option-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pba-mobile-onboarding .pba-account-option:focus-visible {
  outline: 3px solid #78b7ee;
  outline-offset: 3px;
}
.pba-mobile-onboarding-choice h2 { font-size: 1.25rem; }

.pba-register-info a { overflow-wrap: anywhere; }
