/*
Theme Name: PBA Theme
Theme URI: https://priscillabeachassociation.com/
Author: Mike
Description: Minimal custom theme for Priscilla Beach Association.
Version: 1.8
Text Domain: pba-theme
*/

:root {
  --pba-black: #000000;
  --pba-white: #ffffff;
  --pba-text: #333333;
  --pba-link: #c81d4f;
  --pba-max: 1140px;
  --pba-muted: #666666;
  --pba-border: #dddddd;
  --pba-header-hover: #dddddd;
  --pba-header-accent: #7fd4ff;
  --pba-facebook: #1877f2;
  --pba-facebook-hover: #0f63d1;
  --pba-surface: #f7f9fc;
  --pba-surface-strong: #eef3f8;
  --pba-nav-dark-hover: rgba(255, 255, 255, 0.14);
  --pba-nav-light-hover: rgba(13, 59, 102, 0.08);
  --pba-nav-light-active: rgba(13, 59, 102, 0.12);
  --pba-primary: #0d3b66;

  --pba-primary-hover: #0b3154;
  --pba-header-panel: rgba(15, 20, 31, 0.96);
  --pba-header-panel-border: rgba(255, 255, 255, 0.1);
  --pba-header-topbar-border: rgba(255, 255, 255, 0.08);
  --pba-sand: #d8bd90;
  --pba-beach-grass: #5f7f68;
  --pba-focus: rgba(13, 59, 102, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--pba-text);
  background: var(--pba-white);
}

a {
  color: var(--pba-link);
  text-decoration: none;
}

/*
 * Interactive cursor convention
 *
 * Use the pointing-hand cursor consistently for controls that perform an
 * action or navigation. Keep text-entry fields on the browser's normal
 * text/edit cursor, and do not make disabled controls look actionable.
 */
a[href],
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
details > summary {
  cursor: pointer !important;
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
[role="button"][aria-disabled="true"] {
  cursor: not-allowed;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pba-container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  background: var(--pba-black);
  color: var(--pba-white);
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header-inner.pba-header-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pba-header-topbar {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--pba-header-topbar-border);
}

.pba-header-navrow {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 0;
}

.site-branding {
  flex: 0 1 auto;
  min-width: 0;
}

.site-branding .pba-site-branding-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pba-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.site-branding .pba-site-branding-link:hover {
  color: var(--pba-white);
  opacity: 0.92;
  text-decoration: none;
}

.pba-site-logo {
  width: 68px;
  height: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.pba-site-title {
  display: inline-block;
  line-height: 1.1;
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.6rem);
  white-space: nowrap;
}

.site-navigation-wrap,
.site-navigation,
.main-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.pba-header-user-tools,
.header-socials,
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pba-header-user-tools-top {
  margin-left: auto;
}

.pba-welcome-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.2;
}

.pba-logout-link,
.header-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--pba-white) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 10px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pba-logout-link {
  border: 1px solid transparent;
}

.pba-logout-link:hover,
.pba-logout-link:focus-visible {
  color: var(--pba-white) !important;
  background: var(--pba-nav-dark-hover);
  text-decoration: none !important;
  outline: none;
}

.header-login-btn,
.pba-login-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: transparent;
  color: #ffffff !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pba-login-button:hover,
.pba-login-button:focus-visible,
.header-login-btn:hover,
.header-login-btn:focus-visible {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  text-decoration: none !important;
  outline: none;
}

.pba-login-button-current,
.pba-login-button-current:hover,
.pba-login-button-current:focus-visible {
  min-height: 34px;
  padding: 7px 11px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84) !important;
  cursor: default;
}

.pba-facebook-link,
.header-socials .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--pba-facebook);
  color: var(--pba-white) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.pba-facebook-link:hover,
.pba-facebook-link:focus-visible,
.header-socials .social-icon:hover {
  background: var(--pba-facebook-hover);
  color: var(--pba-white) !important;
  text-decoration: none !important;
  outline: none;
}

.pba-facebook-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.pba-facebook-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pba-facebook-label {
  display: inline-block;
  line-height: 1;
}

.header-socials .social-icon img {
  width: 14px;
  height: 14px;
  display: block;
}

/* Primary portal nav */
.pba-custom-menu,
.main-nav ul,
.main-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pba-custom-menu li,
.main-nav li,
.main-nav .menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pba-portal-menu {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.pba-portal-menu > li {
  position: relative;
  flex: 0 0 auto;
}

.site-header .pba-custom-menu > li > a,
.site-header .main-nav a,
.site-header .pba-menu-dropdown-toggle {
  color: var(--pba-white) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.site-header .pba-custom-menu > li > a:hover,
.site-header .main-nav a:hover,
.site-header .pba-menu-dropdown-toggle:hover,
.site-header .pba-custom-menu > li > a:focus-visible,
.site-header .main-nav a:focus-visible,
.site-header .pba-menu-dropdown-toggle:focus-visible {
  color: var(--pba-white) !important;
  background: var(--pba-nav-dark-hover);
  text-decoration: none !important;
  outline: none;
}

.site-header .pba-custom-menu > li.current-menu-item > a,
.site-header .pba-custom-menu > li.current-menu-item > .pba-menu-dropdown-toggle,
.site-header .pba-custom-menu > li.current_page_item > a {
  background: #ffffff;
  color: var(--pba-primary) !important;
  border-color: #ffffff;
  text-decoration: none !important;
  box-shadow: none;
}

.pba-menu-dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
}

.pba-menu-caret {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.9;
}

.pba-portal-menu > li.menu-item-has-children > .pba-menu-dropdown-toggle {
  position: relative;
  z-index: 1101;
}

.pba-portal-menu > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.pba-portal-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  min-width: 250px;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--pba-header-panel);
  border: 1px solid var(--pba-header-panel-border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 1100;
}

.pba-portal-menu > li.menu-item-has-children:hover > .sub-menu,
.pba-portal-menu > li.menu-item-has-children:focus-within > .sub-menu,
.pba-portal-menu > li.menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.pba-portal-menu .sub-menu li {
  margin: 0;
}

.pba-portal-menu .sub-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.pba-portal-menu .sub-menu a:hover,
.pba-portal-menu .sub-menu a:focus-visible,
.pba-portal-menu .sub-menu li.current-menu-item > a {
  background: rgba(127, 212, 255, 0.18);
  color: #ffffff !important;
  outline: none;
}

/* =========================================================
   Hero
   ========================================================= */

.hero-image-wrap {
  margin: 0 0 36px;
  padding: 0;
}

.hero-image {
  width: 100%;
  height: 700px;
  background-color: #000000;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.hero-title-black {
  margin: 0 0 14px;
  max-width: 720px;
  color: #111111;
  font-size: 55px;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.25);
}

.hero-subtitle-white {
  margin: 0;
  max-width: 720px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.5;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   Home content
   ========================================================= */

.home-columns {
  display: flex;
  gap: 70px;
  margin: 0 auto 40px;
}

.home-calendar-callout {
  width: min(760px, 100%);
  margin: 24px 0 34px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--pba-white);
  border: 1px solid #e1e5ea;
  border-left: 5px solid #1f6f8b;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

.home-calendar-callout-media {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.home-calendar-callout-media:hover {
  text-decoration: none;
}

.home-calendar-callout-media img {
  width: 112px;
  height: auto;
  border-radius: 7px;
}

.home-calendar-callout-content {
  flex: 1 1 auto;
  min-width: 0;
}

.home-calendar-callout-eyebrow {
  margin: 0 0 4px;
  color: #1f6f8b;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-calendar-callout h2 {
  margin: 0 0 6px;
  color: #1f2933;
  font-size: 1.18rem;
  line-height: 1.25;
}

.home-calendar-callout p {
  margin: 0 0 10px;
  color: #3f4a54;
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-calendar-callout-link {
  display: inline-block;
  color: #1f6f8b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.home-calendar-callout-link:hover,
.home-calendar-callout-link:focus-visible {
  color: #16546a;
  text-decoration: underline;
}

.home-col {
  flex: 1 1 0;
}

.home-col h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pba-muted);
  margin: 0 0 18px;
}

.home-col p {
  margin-top: 0;
  margin-bottom: 18px;
}

.home-docs {
  text-align: center;
  margin: 20px auto 50px;
}

.home-docs h2 {
  font-size: 34px;
  margin: 0 0 22px;
  color: #111111;
}

.home-docs h3 {
  font-size: 22px;
  margin: 0 0 16px;
  color: #111111;
}

.pba-button {
  display: inline-block;
  background: #555555;
  color: #ffffff !important;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
}

.pba-button:hover {
  text-decoration: none;
  background: #444444;
}

/* =========================================================
   Pages
   ========================================================= */

.page-content {
  width: min(1140px, calc(100% - 40px));
  margin: 24px auto 60px;
}

.page-content > * {
  max-width: 900px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content p,
.page-content ul,
.page-content ol,
.page-content .wp-block-buttons,
.page-content .wp-block-image,
.page-content .photo-grid,
.page-content .gallery,
.page-content form {
  margin-left: 0;
  margin-right: 0;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  color: #111111;
}

.page-content p {
  margin-top: 0;
  margin-bottom: 18px;
}

.pba-apparel-page > * {
  max-width: 1050px;
}

.pba-apparel-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.pba-apparel-image-wrap {
  flex: 0 1 430px;
}

.pba-apparel-image-wrap img {
  width: 100%;
  max-width: 430px;
  height: auto;
  border-radius: 8px;
}

.pba-apparel-card {
  flex: 1 1 430px;
  max-width: 520px;
  padding: 24px;
  background: #f7fafc;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
}

.pba-apparel-card h2 {
  margin: 0 0 14px;
  color: #102a43;
  font-size: 1.45rem;
  line-height: 1.25;
}

.pba-apparel-card p {
  margin-bottom: 14px;
}

.pba-apparel-download {
  display: inline-block;
  margin-top: 2px;
  padding: 12px 16px;
  background: #1f6f8b;
  color: #ffffff !important;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

.pba-apparel-download:hover,
.pba-apparel-download:focus-visible {
  background: #16546a;
  text-decoration: none !important;
}

.pba-apparel-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #ffffff;
  border-left: 4px solid #1f6f8b;
}

.pba-apparel-note p,
.pba-apparel-contact p {
  margin-bottom: 8px;
}

.pba-apparel-note p:last-child,
.pba-apparel-contact p:last-child {
  margin-bottom: 0;
}

.pba-apparel-contact {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #d9e2ec;
}

.pba-apparel-contact a {
  color: #1f6f8b;
  text-decoration: underline;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--pba-white);
  color: var(--pba-text);
  width: 100%;
  margin-top: 48px;
  padding: 0;
  border-top: 1px solid var(--pba-border);
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer-branding {
  flex: 0 0 auto;
}

.site-footer-branding a {
  color: var(--pba-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.site-footer-branding a:hover {
  color: var(--pba-primary);
  text-decoration: none;
}

.site-footer-navigation-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.site-footer-navigation,
.footer-nav {
  display: flex;
  align-items: center;
}

.site-footer .pba-custom-menu,
.footer-nav ul,
.footer-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.site-footer .pba-custom-menu li,
.footer-nav li,
.footer-nav .menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .pba-custom-menu li a,
.footer-nav a {
  color: var(--pba-muted) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-footer .pba-custom-menu li.current-menu-item > a,
.site-footer .pba-custom-menu li.current_page_item > a,
.site-footer .pba-custom-menu li a:hover,
.site-footer .pba-custom-menu li a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--pba-primary) !important;
  background: var(--pba-nav-light-hover);
  text-decoration: none !important;
  outline: none;
}

.site-footer .pba-custom-menu li.current-menu-item > a,
.site-footer .pba-custom-menu li.current_page_item > a {
  box-shadow: inset 0 -2px 0 var(--pba-primary);
  font-weight: 700;
}

.pba-footer-user-tools,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.pba-footer-welcome-text {
  color: var(--pba-muted);
  font-size: 13px;
  line-height: 1.2;
}

.pba-footer-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--pba-muted) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 7px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.pba-footer-logout-link:hover,
.pba-footer-logout-link:focus-visible {
  color: var(--pba-primary) !important;
  background: var(--pba-nav-light-hover);
  text-decoration: none !important;
  outline: none;
}

.site-footer p {
  margin: 0 0 10px;
}

.footer-socials {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
}

.footer-socials a {
  margin-right: 14px;
  color: var(--pba-muted) !important;
  text-decoration: none;
}

.footer-socials a:hover {
  color: var(--pba-link) !important;
}

.pba-footer-menu {
  justify-content: flex-end;
}

/* =========================================================
   Photo grid / popup
   ========================================================= */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.photo-cell {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-grid img,
.photo-cell img {
  cursor: zoom-in;
}

.photo-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

.photo-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
}

.photo-popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #000000;
  padding: 16px;
  border: 2px solid #000000;
  box-sizing: border-box;
  width: min(1200px, calc(100vw - 40px));
  height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
}

.photo-popup-toolbar {
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  flex: 0 0 52px;
}

.photo-popup-image-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
  min-height: 0;
}

.photo-popup-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #ffffff;
}

.photo-popup-btn {
  background: #555555;
  color: #ffffff;
  border: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.2;
}

.photo-popup-btn:hover {
  background: #444444;
}

/* =========================================================
   Auth forms
   ========================================================= */

.pba-auth-wrap {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 20px;
}

.pba-auth-card {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 28px 22px;
  margin-bottom: 24px;
}

.pba-auth-card h1,
.pba-auth-card h2 {
  margin: 0 0 12px;
}

.pba-auth-card p {
  margin: 0 0 18px;
}

.pba-auth-form .pba-form-row {
  margin-bottom: 16px;
}

.pba-auth-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.pba-auth-form input,
.pba-auth-form select {
  width: 100%;
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid #bfc7cf;
  border-radius: 4px;
  box-sizing: border-box;
  background: #ffffff;
}

.pba-auth-form input[readonly] {
  background: #f5f5f5;
  color: #444444;
}

.pba-form-row-inline {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.pba-form-row-inline > div {
  flex: 0 1 auto;
}

.pba-field-login-email {
  max-width: 380px;
}

.pba-field-login-password {
  max-width: 240px;
}

.pba-field-name {
  max-width: 240px;
}

.pba-field-house-number {
  max-width: 100px;
}

.pba-field-street {
  min-width: 260px;
  max-width: 420px;
  flex: 1 1 280px;
}

.pba-field-email {
  max-width: 380px;
}

.pba-form-section-label {
  margin: 6px 0 10px;
  font-weight: 700;
  color: #333333;
}

.pba-form-help {
  margin-top: 4px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #555555;
}

.pba-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pba-form-actions button {
  padding: 10px 16px;
  border: 1px solid #0d3b66;
  background: #0d3b66;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
}

.pba-form-actions button[type="button"] {
  background: #ffffff;
  color: #0d3b66;
}

.pba-register-toggle {
  margin-top: 18px;
  padding-top: 12px;
}

.pba-register-toggle p {
  margin: 0 0 6px;
}

.pba-form-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 4px;
}

.pba-form-notice-success {
  background: #e6ffed;
  border: 1px solid #a5e6a5;
  color: #4c9c4c;
}

.pba-form-notice-error {
  background: #fff1f1;
  border: 1px solid #e2a3a3;
  color: #8a1f1f;
}

/* =========================================================
   Login page
   ========================================================= */

.pba-login-page {
  background: #f6f1e8;
}

.pba-login-page [hidden] {
  display: none !important;
}

.pba-login-backdrop {
  position: relative;
  min-height: clamp(640px, calc(100vh - 118px), 820px);
  padding: clamp(36px, 6vw, 72px) 0 clamp(46px, 7vw, 84px);
  overflow: hidden;
  background-color: #f6f1e8;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0.04) 100%),
    url("assets/images/beach-entrance-watercolor.webp");
  background-position: center center, center 46%;
  background-repeat: no-repeat;
  background-size: cover;
}

.pba-login-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.pba-login-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 22px;
}

.pba-login-shell::before {
  content: "";
  position: absolute;
  inset: 0 -20px;
  z-index: -1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.30);
  filter: blur(10px);
}

.pba-login-layout {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(300px, 360px);
  align-items: start;
  gap: 24px;
}

.pba-login-page .pba-auth-card {
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(13, 59, 102, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(5px);
}

.pba-login-card {
  max-width: 520px;
}

.pba-login-single-card {
  width: min(720px, 100%);
}

.pba-login-page .pba-auth-card h1,
.pba-login-page .pba-auth-card h2 {
  margin: 0 0 8px;
  color: #20242a;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.pba-login-page .pba-auth-card h2 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.pba-login-page .pba-auth-card > p,
.pba-login-page .pba-account-types-intro {
  margin: 0 0 24px;
  color: #3d4652;
  line-height: 1.45;
}

.pba-login-page .pba-auth-form .pba-form-row {
  margin-bottom: 18px;
}

.pba-login-page .pba-field-login-email,
.pba-login-page .pba-field-login-password,
.pba-login-page .pba-field-email {
  max-width: none;
}

.pba-login-page .pba-auth-form label {
  margin-bottom: 7px;
  color: #252b33;
  font-weight: 700;
}

.pba-login-page .pba-auth-form input,
.pba-login-page .pba-auth-form select {
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
  color: #1f2933;
  font-size: 1rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pba-login-page .pba-auth-form input:focus,
.pba-login-page .pba-auth-form select:focus {
  border-color: var(--pba-primary);
  box-shadow: 0 0 0 4px var(--pba-focus);
  outline: none;
}

.pba-password-field {
  position: relative;
}

.pba-password-field input {
  padding-right: 72px;
}

.pba-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--pba-primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.pba-password-toggle:hover,
.pba-password-toggle:focus-visible {
  background: rgba(13, 59, 102, 0.08);
  outline: none;
}

.pba-login-actions {
  display: block;
  margin-top: 8px;
}

.pba-login-actions button[type="submit"] {
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  background: var(--pba-primary);
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pba-login-actions button[type="submit"]:hover,
.pba-login-actions button[type="submit"]:focus-visible {
  background: var(--pba-primary-hover);
  box-shadow: 0 7px 18px rgba(13, 59, 102, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.pba-login-page .pba-form-help {
  margin: 14px 0 0;
  color: #4b5563;
}

.pba-login-page .pba-form-help a {
  color: #9f224d;
  font-weight: 700;
}

.pba-account-card {
  max-width: 360px;
}

.pba-account-card .pba-account-types-intro {
  margin-bottom: 16px;
}

.pba-account-option {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 13px 14px;
  border: 1px solid rgba(13, 59, 102, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #1f2933;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.pba-account-option:last-child {
  margin-bottom: 0;
}

.pba-account-option:hover,
.pba-account-option:focus-visible {
  border-color: rgba(13, 59, 102, 0.34);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.pba-account-option-info {
  cursor: default;
}

.pba-account-option-info:hover {
  border-color: rgba(13, 59, 102, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  transform: none;
}

.pba-account-option-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(95, 127, 104, 0.16);
  color: #315f45;
}

.pba-account-option-icon-sand {
  background: rgba(216, 189, 144, 0.26);
  color: #8a6332;
}

.pba-account-option-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pba-account-option-copy {
  min-width: 0;
  display: block;
}

.pba-account-option-title,
.pba-account-option-caption,
.pba-account-option-note {
  display: block;
}

.pba-account-option-title {
  color: #1f2933;
  font-weight: 800;
  line-height: 1.2;
}

.pba-account-option-caption {
  margin-top: 3px;
  color: #596575;
  font-size: 0.9rem;
  line-height: 1.3;
}

.pba-account-option-note {
  margin-top: 7px;
  color: #26384d;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.32;
}

.pba-account-option-arrow {
  color: var(--pba-primary);
  font-weight: 800;
}

.pba-login-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(720px, 100%);
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.pba-login-alert-success {
  border: 1px solid #34a853;
  color: #1e4620;
}

.pba-login-alert-info {
  border: 1px solid #2b6cb0;
  color: #123d68;
}

.pba-login-alert-error {
  border: 1px solid #d93025;
  color: #5f2120;
}

.pba-login-alert-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.pba-login-alert-success .pba-login-alert-icon {
  background: #34a853;
}

.pba-login-alert-info .pba-login-alert-icon {
  background: #2b6cb0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.pba-login-alert-error .pba-login-alert-icon {
  background: #d93025;
}

.pba-login-alert-title {
  margin-bottom: 2px;
  font-weight: 800;
}

.pba-directory-visibility-help {
  margin-top: 6px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.4;
}

.pba-register-info {
  margin: 18px 0 24px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.92);
  color: #1f2937;
}

.pba-register-info-title {
  margin: 0 0 8px;
  color: #1d4f91;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.pba-register-info p {
  margin: 0 0 10px;
  color: #374151;
  font-size: 0.96rem;
  line-height: 1.45;
}

.pba-register-info p:last-child {
  margin-bottom: 0;
}

.page-template-page-login .site-footer {
  margin-top: 0;
}

@media (max-width: 940px) {
  .pba-login-backdrop {
    min-height: auto;
    background-position: center center, 62% center;
  }

  .pba-login-shell {
    width: min(680px, calc(100% - 32px));
    padding: 14px;
  }

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

  .pba-login-card,
  .pba-account-card,
  .pba-login-single-card {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .pba-login-backdrop {
    padding: 26px 0 40px;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.34) 58%, rgba(255, 255, 255, 0.22) 100%),
      url("assets/images/beach-entrance-watercolor.webp");
  }

  .pba-login-shell {
    width: min(100% - 24px, 560px);
    padding: 10px;
  }

  .pba-login-shell::before {
    inset: 0;
    border-radius: 16px;
  }

  .pba-login-page .pba-auth-card {
    padding: 22px 18px;
  }

  .pba-account-option {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 12px;
  }

  .pba-account-option-icon {
    width: 38px;
    height: 38px;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .pba-site-title {
    white-space: normal;
  }

  .pba-header-topbar {
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .pba-header-user-tools-top {
    flex-wrap: wrap;
  }

  .pba-portal-menu {
    flex-wrap: wrap;
  }
}
.pba-login-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid transparent;
}

.pba-login-message-success {
    background: #ecfdf3;
    border-color: #a7f3d0;
    color: #166534;
}
.pba-account-types {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #d9dde3;
}

.pba-account-types h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.pba-account-types-intro {
  margin: 0 0 22px;
  color: #374151;
}

.pba-account-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pba-account-type-card {
  border: 1px solid #d9dde3;
  border-radius: 8px;
  padding: 28px;
  background: #fff;
}

.pba-account-type-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #dbeafe;
  color: #0f4c8a;
  font-size: 28px;
}

.pba-account-type-icon-member {
  background: #dcfce7;
  color: #166534;
}

.pba-account-type-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.pba-account-type-card p {
  margin: 0 0 16px;
}

.pba-account-type-note {
  color: #4b5563;
  font-size: 0.95rem;
}

.pba-account-type-button {
  margin-top: 8px;
}
.pba-announcements-shell {
    margin-top: 28px;
    padding: 28px;
}

.pba-announcements-header {
    margin-bottom: 18px;
}

.pba-announcements-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    color: #14213d;
}

.pba-announcements-subtitle {
    margin: 8px 0 0;
    font-size: 1rem;
    color: #51627a;
}

.pba-announcement-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.pba-announcement-status-success {
    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    color: #166534;
}

.pba-announcement-status-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.pba-announcement-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1;
    flex: 0 0 auto;
}

.pba-announcement-status-success .pba-announcement-status-icon {
    background: #16a34a;
    color: #fff;
}

.pba-announcement-status-error .pba-announcement-status-icon {
    background: #e11d48;
    color: #fff;
}

.pba-announcements-grid {
    display: grid;
    gap: 22px;
}

.pba-announcements-grid-has-compose {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    align-items: start;
}

.pba-announcement-compose-card,
.pba-announcements-feed-card {
    background: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.pba-announcement-compose-header {
    margin-bottom: 14px;
}

.pba-announcement-compose-title,
.pba-announcements-feed-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    color: #14213d;
}

.pba-announcement-compose-intro,
.pba-announcements-feed-note {
    margin: 8px 0 0;
    color: #607089;
    font-size: 0.96rem;
}

.pba-announcement-compose-form {
    display: grid;
    gap: 14px;
}

.pba-announcement-form-row {
    display: grid;
    gap: 7px;
}

.pba-announcement-form-row label {
    font-weight: 700;
    color: #243b53;
    font-size: 0.97rem;
}

.pba-announcement-form-row input,
.pba-announcement-form-row select,
.pba-announcement-form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c8d4e3;
    border-radius: 12px;
    background: #fff;
    color: #243b53;
    font: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pba-announcement-form-row input:focus,
.pba-announcement-form-row select:focus,
.pba-announcement-form-row textarea:focus {
    outline: none;
    border-color: #1d4f91;
    box-shadow: 0 0 0 3px rgba(29, 79, 145, 0.12);
}

.pba-announcement-form-row textarea {
    min-height: 140px;
    resize: vertical;
}

.pba-optional-label {
    font-weight: 400;
    color: #6b7c93;
}

.pba-announcement-form-actions {
    padding-top: 4px;
}

.pba-announcement-submit-button {
    width: 100%;
    justify-content: center;
}

.pba-announcements-feed-header {
    margin-bottom: 14px;
}

.pba-announcements-panel {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
    display: grid;
    gap: 14px;
}

.pba-announcements-panel::-webkit-scrollbar {
    width: 10px;
}

.pba-announcements-panel::-webkit-scrollbar-track {
    background: #edf2f7;
    border-radius: 999px;
}

.pba-announcements-panel::-webkit-scrollbar-thumb {
    background: #c2cedb;
    border-radius: 999px;
}

.pba-announcements-empty {
    border: 1px dashed #c8d4e3;
    border-radius: 14px;
    padding: 24px 18px;
    background: #f8fbff;
    color: #607089;
    text-align: center;
}

.pba-announcement-item {
    border: 1px solid #dde6f0;
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.pba-announcement-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.pba-announcement-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pba-announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4fb;
    color: #284b63;
    font-size: 0.88rem;
    line-height: 1.2;
    font-weight: 600;
}

.pba-announcement-pill-date {
    background: #e7eef8;
    color: #1d3557;
}

.pba-announcement-pill-author {
    background: #f3f7fb;
    color: #3d566e;
}

.pba-announcement-pill-time {
    font-weight: 500;
    color: #52667a;
}

.pba-announcement-title {
    margin: 0 0 8px;
    font-size: 1.16rem;
    line-height: 1.3;
    color: #14213d;
}

.pba-announcement-body {
    color: #243b53;
    line-height: 1.65;
    font-size: 0.98rem;
}

.pba-announcement-delete-form {
    margin: 0;
    flex: 0 0 auto;
}

.pba-announcement-delete-button {
    appearance: none;
    border: 1px solid #efc3ca;
    border-radius: 10px;
    background: #fff7f8;
    color: #b42318;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pba-announcement-delete-button:hover {
    background: #ffe9ec;
    border-color: #e8a8b2;
}

@media (max-width: 980px) {
    .pba-announcements-grid-has-compose {
        grid-template-columns: 1fr;
    }

    .pba-announcements-panel {
        max-height: 480px;
    }
}

@media (max-width: 640px) {
    .pba-announcements-shell {
        padding: 18px;
    }

    .pba-announcements-title {
        font-size: 1.6rem;
    }

    .pba-announcement-compose-card,
    .pba-announcements-feed-card {
        padding: 18px;
        border-radius: 14px;
    }

    .pba-announcement-item {
        padding: 14px;
        border-radius: 14px;
    }

    .pba-announcement-item-top {
        flex-direction: column;
        align-items: stretch;
    }

    .pba-announcement-delete-form {
        align-self: flex-start;
    }
}

@media (max-width: 900px) {
  .hero-image {
    height: 300px;
  }

  .hero-title-black {
    font-size: 38px;
    max-width: 100%;
  }

  .hero-subtitle-white {
    font-size: 16px;
    max-width: 100%;
  }

  .home-columns {
    flex-direction: column;
    gap: 20px;
  }

  .home-calendar-callout {
    width: 100%;
  }

  .pba-apparel-layout {
    gap: 24px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header-inner,
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pba-header-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pba-header-user-tools-top {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .pba-header-navrow {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .pba-portal-menu {
    flex-wrap: wrap;
  }

  .pba-portal-menu > li.menu-item-has-children::after {
    display: none;
  }

  .pba-portal-menu .sub-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    width: 100%;
  }

  .site-footer-navigation-wrap {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .pba-custom-menu,
  .site-footer .pba-custom-menu {
    gap: 5px;
  }

  .header-socials,
  .header-right,
  .pba-header-user-tools,
  .pba-footer-user-tools {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .hero-image {
    height: 230px;
  }

  .hero-overlay {
    padding: 20px 16px;
  }

  .hero-title-black {
    font-size: 30px;
  }

  .hero-subtitle-white {
    font-size: 15px;
  }

  .home-calendar-callout {
    align-items: flex-start;
    padding: 14px;
  }

  .home-calendar-callout-media img {
    width: 88px;
  }

  .home-calendar-callout h2 {
    font-size: 1.05rem;
  }

  .pba-apparel-card {
    padding: 18px;
  }

  .footer-nav ul,
  .footer-nav .menu {
    gap: 6px;
  }

  .pba-facebook-label {
    display: none;
  }

  .pba-facebook-link {
    min-width: 40px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .pba-login-button-current {
    display: none;
  }

  .site-header .pba-custom-menu > li > a,
  .site-header .main-nav a,
  .site-header .pba-menu-dropdown-toggle,
  .site-footer .pba-custom-menu li a,
  .footer-nav a,
  .pba-logout-link,
  .pba-footer-logout-link,
  .pba-login-button {
    min-height: 40px;
    padding: 8px 11px;
  }

  .pba-site-logo {
    width: 52px;
    height: auto;
    flex-basis: 52px;
  }

  .pba-field-login-email,
  .pba-field-login-password,
  .pba-field-name,
  .pba-field-house-number,
  .pba-field-street,
  .pba-field-email {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .pba-form-row-inline {
    display: block;
  }

  .pba-form-row-inline > div {
    margin-bottom: 14px;
  }

  .pba-form-row-inline > div:last-child {
    margin-bottom: 0;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* Household invite form fields aligned with auth form styling */
.pba-household-table .pba-household-field {
  max-width: 100%;
  min-width: 0;
}

.pba-household-table .pba-household-field input {
  width: 100%;
  max-width: 100%;
}

.pba-household-table .pba-field-name,
.pba-household-table .pba-field-email {
  max-width: 100%;
}

.pba-household-table td .pba-household-field {
  margin: 0;
}

/* Household actions aligned with auth button styling */
.pba-household-btn {
  padding: 10px 16px;
  border: 1px solid #0d3b66;
  background: #0d3b66;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.pba-household-btn:hover {
  opacity: 1;
  background: #0b3154;
  border-color: #0b3154;
}

.pba-household-btn.secondary {
  background: #ffffff;
  color: #0d3b66;
  border-color: #0d3b66;
}

.pba-household-btn.secondary:hover {
  background: #f3f7fb;
  color: #0d3b66;
  border-color: #0d3b66;
}

.pba-household-btn.plus {
  background: #ffffff;
  color: #0d3b66;
  border-color: #0d3b66;
}

.pba-household-btn.plus:hover {
  background: #f3f7fb;
  color: #0d3b66;
  border-color: #0d3b66;
}

.pba-row-invite-btn {
  min-width: 88px;
  justify-content: center;
}

/* Household invite form consistency */
.pba-household-table .pba-household-field {
  max-width: 100%;
  min-width: 0;
}

.pba-household-table .pba-household-field input {
  width: 100%;
  max-width: 100%;
}

.pba-household-table .pba-field-name,
.pba-household-table .pba-field-email {
  max-width: 100%;
}

.pba-household-table td .pba-household-field {
  margin: 0;
}

/* Household buttons consistent with auth buttons */
.pba-household-btn {
  padding: 10px 16px;
  border: 1px solid #0d3b66;
  background: #0d3b66;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.pba-household-btn:hover {
  background: #0b3154;
  border-color: #0b3154;
}

.pba-household-btn.secondary,
.pba-household-btn.remove {
  background: #ffffff;
  color: #0d3b66;
  border-color: #0d3b66;
}

.pba-household-btn.secondary:hover,
.pba-household-btn.remove:hover {
  background: #f3f7fb;
  color: #0d3b66;
  border-color: #0d3b66;
}

.pba-member-home-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 4px;
  background: #0d3b66;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
}
/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--pba-white);
  color: var(--pba-text);
  width: 100%;
  margin-top: 48px;
  padding: 0;
  border-top: 1px solid var(--pba-border);
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.site-footer-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-branding {
  flex: 0 0 auto;
}

.site-footer-branding a,
.site-footer-brand-link {
  color: var(--pba-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}

.site-footer-branding a:hover,
.site-footer-brand-link:hover {
  color: var(--pba-primary);
  text-decoration: none;
}

.site-footer-navigation-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.site-footer-navigation,
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.site-footer .pba-custom-menu,
.footer-nav ul,
.footer-nav .menu,
.site-footer .pba-footer-menu-flat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.site-footer .pba-custom-menu li,
.footer-nav li,
.footer-nav .menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .pba-custom-menu li a,
.footer-nav a {
  color: var(--pba-muted) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-footer .pba-custom-menu li a:hover,
.site-footer .pba-custom-menu li a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--pba-primary) !important;
  background: var(--pba-nav-light-hover);
  border-color: rgba(13, 59, 102, 0.12);
  text-decoration: none !important;
  outline: none;
}

.site-footer .pba-custom-menu li.current-menu-item > a,
.site-footer .pba-custom-menu li.current_page_item > a {
  color: var(--pba-primary) !important;
  background: rgba(13, 59, 102, 0.10);
  border-color: rgba(13, 59, 102, 0.22);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(13, 59, 102, 0.06);
}

.site-footer p {
  margin: 0 0 10px;
}

.footer-socials {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
}

.footer-socials a {
  margin-right: 14px;
  color: var(--pba-muted) !important;
  text-decoration: none;
}

.footer-socials a:hover {
  color: var(--pba-link) !important;
}

.pba-footer-menu {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .site-footer-top {
    align-items: flex-start;
  }

  .site-footer-navigation {
    width: 100%;
  }

  .site-footer-navigation-wrap {
    justify-content: flex-start;
    gap: 12px;
  }
}

.pba-top-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #7fd4ff;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: width 0.18s ease, opacity 0.18s ease;
}

body.pba-page-loading,
body.pba-page-loading * {
  cursor: progress !important;
}

body.pba-page-loading .pba-top-loader {
  width: 38%;
  opacity: 1;
}


.pba-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 600;
    border: 1px solid;
}

.pba-alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.pba-alert-success {
    background: #e6f4ea;
    border-color: #34a853;
    color: #1e7e34;
}

.pba-alert-success .pba-alert-icon {
    background: #34a853;
    color: #fff;
}

.pba-alert-error {
    background: #fdecea;
    border-color: #d93025;
    color: #a50e0e;
}

.pba-alert-error .pba-alert-icon {
    background: #d93025;
    color: #fff;
}

@media (min-width: 901px) {
  .site-footer .pba-footer-menu-flat {
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .site-footer-top {
    align-items: flex-start;
  }

  .site-footer-navigation {
    width: 100%;
  }

  .site-footer .pba-footer-menu-flat {
    justify-content: flex-start;
  }
}

/* PBA LOGGED-IN HEADER ALIGN START */

/*
 * Keep the PBA logo and Priscilla Beach Association title
 * vertically centered with the main navigation on logged-in pages.
 */

body.logged-in .site-branding {
    display: flex;
    align-items: center;
    align-self: stretch;
}

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

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

/*
 * Ensure the logo itself participates cleanly in the centerline.
 */
body.logged-in .pba-site-logo {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
}

/*
 * Remove vertical margin from the site title so text baseline
 * does not push the branding block off center.
 */
body.logged-in .pba-site-title {
    margin-top: 0;
    margin-bottom: 0;
}

/* PBA LOGGED-IN HEADER ALIGN END */

/* PBA CENTRAL CHROME THEME START */

/*
 * Site-wide dark chrome.
 *
 * Change --pba-chrome-bg in :root to recolor all of these
 * components at once.
 */

/* Logged-in/member footer */
body.logged-in .site-footer,
body.logged-in .site-footer .pba-member-footer-inner,
body.logged-in .site-footer .pba-member-footer-main,
body.logged-in .site-footer .pba-member-footer-bottom {
    background: var(--pba-chrome-bg) !important;
    background-color: var(--pba-chrome-bg) !important;
    color: var(--pba-chrome-text) !important;
}

/* Member footer branding and links */
body.logged-in .site-footer .pba-member-footer-brand,
body.logged-in .site-footer .pba-member-footer-brand span,
body.logged-in .site-footer .pba-member-footer-links,
body.logged-in .site-footer .pba-member-footer-links a {
    color: var(--pba-chrome-text) !important;
}

/* Footer secondary text */
body.logged-in .site-footer .pba-member-footer-bottom,
body.logged-in .site-footer .pba-member-footer-bottom span {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* PBA CENTRAL CHROME THEME END */

/* PBA MEMBER CHROME MAP START */

/*
 * Logged-in site chrome.
 * Uses the same --pba-chrome-bg variable as the public site.
 */

body.logged-in .site-header,

body.logged-in .site-footer,
body.logged-in .site-footer .pba-member-footer-inner,
body.logged-in .site-footer .pba-member-footer-main,
body.logged-in .site-footer .pba-member-footer-bottom {

    background: var(--pba-chrome-bg) !important;
    background-color: var(--pba-chrome-bg) !important;
}


/* Footer text */

body.logged-in .site-footer,
body.logged-in .site-footer .pba-member-footer-brand,
body.logged-in .site-footer .pba-member-footer-brand span,
body.logged-in .site-footer .pba-member-footer-links,
body.logged-in .site-footer .pba-member-footer-links a {

    color: var(--pba-chrome-text, #ffffff) !important;
}


body.logged-in
.site-footer
.pba-member-footer-bottom,

body.logged-in
.site-footer
.pba-member-footer-bottom span {

    color: rgba(255,255,255,.82) !important;
}

/* PBA MEMBER CHROME MAP END */

/* PBA CALENDAR HERO START */

/* =========================================================
   Calendar page shell
   ========================================================= */

body.post-type-archive-tribe_events .tribe-events-view {
    position: relative;
    isolation: isolate;

    background: #f7f9fb !important;

    padding-top: 340px;
}


/* =========================================================
   South Entrance hero
   ========================================================= */

body.post-type-archive-tribe_events .tribe-events-view::before {
    content: "";

    position: absolute;
    z-index: 0;

    top: 0;
    left: 0;
    width: 100%;
    height: 340px;
    transform: none;

    background-image:
        linear-gradient(
            90deg,
            rgba(20, 53, 89, 0.60) 0%,
            rgba(20, 53, 89, 0.20) 45%,
            rgba(20, 53, 89, 0.02) 80%
        ),
        url("assets/images/PBABachSouthEntrance.png");

    background-size: 100% auto;
    background-position: center 50%;
    background-repeat: no-repeat;
}


/* Page title */

body.post-type-archive-tribe_events .tribe-events-view::after {
    content: "Calendar";

    position: absolute;
    z-index: 2;

    left: max(22px, calc((100% - 1120px) / 2 + 40px));
    top: 68px;
    bottom: auto;

    color: #ffffff;

    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);
}


/* =========================================================
   Main calendar content
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-common-l-container.tribe-events-l-container {

    position: relative;
    z-index: 2;

    max-width: 1040px;

    margin: 0 auto !important;

    padding-top: 32px !important;
    padding-bottom: 56px !important;

    background: transparent !important;
}


/* Plugin surfaces */

body.post-type-archive-tribe_events .tribe-common,
body.post-type-archive-tribe_events .tribe-events,
body.post-type-archive-tribe_events .tribe-events-calendar-list,
body.post-type-archive-tribe_events .tribe-events-calendar-latest-past {
    background: transparent !important;
}


/* =========================================================
   Remove the large outer calendar "card"
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-events-header {

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    padding: 0 !important;
    margin: 0 0 24px !important;

    overflow: visible;
}


/* =========================================================
   Search / view selector = the one card
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-events-c-events-bar {

    background: #ffffff !important;

    border: 1px solid rgba(20, 53, 89, 0.13) !important;
    border-radius: 10px !important;

    box-shadow:
        0 4px 14px rgba(20, 53, 89, 0.07);

    overflow: hidden;

    margin: 0 0 24px !important;
}


/* =========================================================
   Upcoming navigation
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-events-c-top-bar {

    margin: 0 0 20px !important;
    padding: 0 !important;
}

body.post-type-archive-tribe_events
.tribe-events-c-top-bar__datepicker-button {

    font-weight: 700 !important;
}


/* Empty upcoming message */

body.post-type-archive-tribe_events
.tribe-events-header__messages {

    margin: 0 0 34px !important;
}


/* =========================================================
   Past events
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-events-calendar-latest-past__heading {

    margin-top: 0 !important;
    margin-bottom: 28px !important;

    font-size: 1.75rem !important;
}


/* Event rows */

body.post-type-archive-tribe_events
.tribe-events-calendar-latest-past__event-row {

    margin-bottom: 34px !important;
}


/* Slight visual separation between events */

body.post-type-archive-tribe_events
.tribe-events-calendar-latest-past__event-row + 
.tribe-events-calendar-latest-past__event-row {

    padding-top: 26px !important;

    border-top: 1px solid rgba(20, 53, 89, 0.10);
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    body.post-type-archive-tribe_events .tribe-events-view {
        padding-top: 230px;
    }

    body.post-type-archive-tribe_events .tribe-events-view::before {
        width: 100%;
        height: 230px;
        background-position: center 48%;
    }

    body.post-type-archive-tribe_events .tribe-events-view::after {
        left: 22px;
        top: 69px;
        bottom: auto;
    }

    body.post-type-archive-tribe_events
    .tribe-common-l-container.tribe-events-l-container {

        padding-top: 22px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        padding-bottom: 40px !important;
    }

    body.post-type-archive-tribe_events
    .tribe-events-c-events-bar {

        border-radius: 8px !important;
    }
}

/* PBA CALENDAR HERO END */

/* PBA CALENDAR TOOLBAR START */

/* =========================================================
   Unified calendar search / view toolbar
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-events-c-events-bar {

    min-height: 58px;

    display: flex;
    align-items: stretch;

    background: #ffffff !important;

    border: 1px solid rgba(20, 53, 89, 0.14) !important;
    border-radius: 10px !important;

    box-shadow:
        0 4px 14px rgba(20, 53, 89, 0.06);

    overflow: hidden;

    margin-bottom: 24px !important;
}


/* =========================================================
   Search section
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-events-c-search {

    display: flex;
    align-items: stretch;

    flex: 1 1 auto;

    margin: 0 !important;
}


body.post-type-archive-tribe_events
.tribe-events-c-search__input-control {

    flex: 1 1 auto;

    min-height: 56px;

    display: flex;
    align-items: center;

    background: #ffffff !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}


/* Actual text input */

body.post-type-archive-tribe_events
.tribe-events-c-search__input {

    width: 100%;

    height: 56px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    color: #14263D !important;

    font: inherit;
}


body.post-type-archive-tribe_events
.tribe-events-c-search__input::placeholder {

    color: #6a7785 !important;
    opacity: 1;
}


/* Focus belongs to toolbar rather than input */

body.post-type-archive-tribe_events
.tribe-events-c-search__input:focus,
body.post-type-archive-tribe_events
.tribe-events-c-search__input:focus-visible {

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   Find Events button
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-events-c-search__button {

    min-width: 118px;
    min-height: 56px;

    margin: 0 !important;
    padding: 0 22px !important;

    border: 0 !important;
    border-radius: 0 !important;

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

    color: #ffffff !important;

    font-weight: 700 !important;

    box-shadow: none !important;
}


body.post-type-archive-tribe_events
.tribe-events-c-search__button:hover,
body.post-type-archive-tribe_events
.tribe-events-c-search__button:focus-visible {

    background: #0f2947 !important;
}


/* =========================================================
   List / Month / Day view selector
   ========================================================= */

body.post-type-archive-tribe_events
.tribe-events-c-view-selector {

    display: flex;
    align-items: stretch;

    flex: 0 0 auto;

    border-left: 1px solid rgba(20, 53, 89, 0.12);
}


body.post-type-archive-tribe_events
.tribe-events-c-view-selector__content {

    height: 100%;

    background: #ffffff !important;
}


body.post-type-archive-tribe_events
.tribe-events-c-view-selector__list {

    height: 100%;

    display: flex;
    align-items: stretch;

    margin: 0 !important;
    padding: 0 !important;
}


body.post-type-archive-tribe_events
.tribe-events-c-view-selector__list-item {

    display: flex;
    align-items: stretch;

    margin: 0 !important;
}


body.post-type-archive-tribe_events
.tribe-events-c-view-selector__list-item-link {

    position: relative;

    min-width: 58px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 13px !important;

    color: #283544 !important;

    font-weight: 600;

    text-decoration: none !important;
}


/* Active view */

body.post-type-archive-tribe_events
.tribe-events-c-view-selector__list-item--active
.tribe-events-c-view-selector__list-item-link {

    color: var(--pba-chrome-bg) !important;
}


body.post-type-archive-tribe_events
.tribe-events-c-view-selector__list-item--active
.tribe-events-c-view-selector__list-item-link::after {

    content: "";

    position: absolute;

    left: 13px;
    right: 13px;
    bottom: 0;

    height: 2px;

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


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    body.post-type-archive-tribe_events
    .tribe-events-c-events-bar {

        display: block;

        overflow: visible;

        border-radius: 8px !important;
    }

    body.post-type-archive-tribe_events
    .tribe-events-c-search__button {

        border-radius: 0 8px 8px 0 !important;
    }

    body.post-type-archive-tribe_events
    .tribe-events-c-view-selector {

        border-left: 0;
    }
}

/* PBA CALENDAR TOOLBAR END */



/* PBA calendar event thumbnails */
body.post-type-archive-tribe_events .tribe-events-calendar-list__event-featured-image-wrapper {
    flex: 0 0 160px;
    width: 160px;
}

body.post-type-archive-tribe_events .tribe-events-calendar-list__event-featured-image {
    display: block;
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 780px) {
    body.post-type-archive-tribe_events .tribe-events-calendar-list__event-featured-image-wrapper,
    body.post-type-archive-tribe_events .tribe-events-calendar-list__event-featured-image {
        width: 112px;
    }

    body.post-type-archive-tribe_events .tribe-events-calendar-list__event-featured-image {
        height: 76px;
    }
}


body.post-type-archive-tribe_events .tribe-events-c-events-bar > .pba-calendar-public-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex: 0 0 auto;
    min-width: 154px;
    min-height: 56px;
    margin: 0 !important;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid rgba(20, 53, 89, 0.12);
    border-radius: 0;
    background: #0d3b66;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

body.post-type-archive-tribe_events .tribe-events-c-events-bar > .pba-calendar-public-admin-link:hover,
body.post-type-archive-tribe_events .tribe-events-c-events-bar > .pba-calendar-public-admin-link:focus-visible {
    background: #0a3156;
    color: #fff;
}

@media (max-width: 768px) {
    body.post-type-archive-tribe_events .tribe-events-c-events-bar > .pba-calendar-public-admin-link {
        display: flex;
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        border-left: 0;
        border-top: 1px solid rgba(20, 53, 89, 0.13);
    }
}
