:root {
  --ink: #0c1b1a;
  --forest: #12332c;
  --pine: #2d6a4f;
  --gold: #c9a227;
  --paper: #fbf8f2;
  --line: #e4ddd0;
  --bps-navy: #14323f;
  --bps-navy-2: #1c4556;
  --bps-forest: #2d6a4f;
  --bps-leaf: #5fa86a;
  --bps-gold: #c9a227;
  --bps-cream: #f4efe4;
  --bps-sand: #e4ddd0;
  --bps-ink: #0c1b1a;
  --bps-sidebar: 260px;
}
html, body { height: 100%; }
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
body.bps-staff {
  background: var(--paper);
  color: var(--ink);
}
body.bps-staff::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  z-index: 1080;
}
.bps-sidebar {
  width: var(--bps-sidebar);
  background: var(--forest);
  color: #fff;
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 1040;
  padding-top: 3px;
}
.bps-brand {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.05rem 1.15rem .95rem;
  color: #fff; text-decoration: none;
}
.bps-brand:hover { color: #fff; }
.bps-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--gold);
  object-fit: cover;
}
.bps-brand .brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
  display: block;
}
.bps-brand .brand-kicker {
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: .12rem;
}
.bps-nav a {
  display: flex; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.82);
  padding: .42rem 1.15rem;
  text-decoration: none;
  font-size: .92rem;
  border-left: 3px solid transparent;
}
.bps-nav a:hover, .bps-nav a.active {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-left-color: var(--gold);
}
.bps-nav .nav-label {
  padding: .75rem 1.15rem .25rem;
  font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700;
}
.bps-main { margin-left: var(--bps-sidebar); min-height: 100vh; }
.bps-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .75rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 3px; z-index: 1020;
}
.bps-top .top-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.bps-content { padding: 1.4rem; }
.bps-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(12, 27, 26, .04);
}
.bps-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border-top: 3px solid var(--gold);
}
.stat-tile .n {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem; font-weight: 600; color: var(--ink); line-height: 1.1;
}
.stat-tile .l { font-size: .75rem; color: #5c6a67; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.table { --bs-table-bg: transparent; }
.table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--pine); white-space: nowrap; font-weight: 700;
  border-bottom-color: var(--line);
}
.table > :not(caption) > * > * { border-bottom-color: var(--line); }
.btn-forest { background: var(--pine); border-color: var(--pine); color: #fff; font-weight: 600; }
.btn-forest:hover { background: #245a43; border-color: #245a43; color: #fff; }
.btn-navy { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 600; }
.btn-navy:hover { background: #0c1b1a; border-color: #0c1b1a; color: #fff; }
.btn-outline-forest {
  color: var(--forest);
  border-color: var(--line);
  background: #fff;
}
.btn-outline-forest:hover { background: rgba(45, 106, 79, .08); color: var(--pine); border-color: var(--pine); }
.page-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
.page-title small { display: block; font-weight: 400; color: #5c6a67; font-size: .9rem; font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pine); text-align: center; padding: .3rem; font-weight: 700; }
.cal-cell {
  min-height: 7.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .35rem;
  font-size: .8rem;
}
.cal-cell.out { background: #fff; color: #9aa8a5; }
.cal-cell .d { font-weight: 700; color: var(--ink); }
.cal-ev {
  display: block;
  background: rgba(45, 106, 79, .1);
  color: var(--forest);
  border-left: 3px solid var(--pine);
  padding: .1rem .3rem;
  margin-top: .2rem;
  border-radius: .2rem;
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.form-control, .form-select {
  border-color: var(--line);
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 .2rem rgba(45, 106, 79, .18);
}
.form-label { font-weight: 600; color: var(--ink); }
.pagination .page-link { color: var(--forest); border-color: var(--line); }
.pagination .page-item.active .page-link {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.badge.text-bg-success { background: var(--pine) !important; }
a { color: var(--pine); }
a:hover { color: var(--forest); }
.card { --bs-card-border-color: var(--line); border-radius: 16px; }
.btn-outline-secondary {
  color: var(--forest);
  border-color: var(--line);
  background: #fff;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(45, 106, 79, .08);
  color: var(--pine);
  border-color: var(--pine);
}
.btn-group .btn { border-color: var(--line); }
.dropdown-menu {
  border-color: var(--line);
  border-radius: 10px;
}
h1, h2, h3, .h1, .h2, .h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
body.bps-staff .bps-nav a,
body.bps-portal .portal-header a,
body.bps-portal .portal-footer a,
.login-wrap a {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
.login-wrap {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, .85) 0, rgba(201, 162, 39, .85) 3px, transparent 3px),
    radial-gradient(900px 480px at 12% -8%, rgba(45, 106, 79, .55) 0%, transparent 55%),
    linear-gradient(165deg, #0c1b1a 0%, #12332c 55%, #0c1b1a 100%);
  display: grid; place-items: center; padding: 1.5rem;
  color: #fff;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 2rem 2rem 1.6rem;
  box-shadow: 0 24px 50px rgba(12, 27, 26, .28);
  border: 1px solid var(--line);
}
.login-card h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.btn-gold:hover { background: #b48e1c; border-color: #b48e1c; color: var(--ink); }
.member-hero {
  background: linear-gradient(115deg, #0c1b1a 0%, #12332c 48%, #1a4a3c 100%);
  color: #fff;
  padding: 3.25rem 0 3rem;
  position: relative;
}
.member-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.portal-tile {
  display: block; text-decoration: none; color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.portal-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(12, 27, 26, .08);
  border-color: #d9d1c2;
  color: inherit;
}
.portal-tile .tile-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(45, 106, 79, .12);
  color: var(--pine);
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.portal-tile i { color: var(--pine); font-size: 1.05rem; }
.required:after { content: " *"; color: #b42318; }
@media (max-width: 991.98px) {
  .bps-sidebar { transform: translateX(-100%); transition: transform .2s; }
  .bps-sidebar.open { transform: none; }
  .bps-main { margin-left: 0; }
}
@media print {
  .bps-sidebar, .bps-top, .no-print { display: none !important; }
  .bps-main { margin: 0; }
}

/* —— Member portal civic skin —— */
body.bps-portal {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
body.bps-portal .page-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
.portal-header {
  background: var(--forest);
  color: #fff;
}
.portal-header .navbar {
  background: transparent;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.portal-brand {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none;
}
.portal-brand:hover { color: #fff; }
.portal-brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
  background: #fff;
}
.portal-brand .brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  display: block;
}
.portal-brand .brand-kicker {
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: .12rem;
}
.portal-header .nav-link {
  color: rgba(255,255,255,.86) !important;
  font-size: .92rem;
}
.portal-header .nav-link:hover { color: #fff !important; }
.portal-search .form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  min-width: 180px;
}
.portal-search .form-control::placeholder { color: rgba(255,255,255,.55); }
.portal-search .form-control:focus {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .2);
}
.portal-goldbar {
  height: 3px;
  background: var(--gold);
}
.portal-subnav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.portal-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .35rem;
  padding: .55rem 0;
}
.portal-subnav a.sub-link,
.portal-subnav .dropdown-toggle {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: 6px;
  border: 0;
  background: transparent;
}
.portal-subnav a.sub-link:hover,
.portal-subnav .dropdown-toggle:hover {
  background: rgba(45, 106, 79, .08);
  color: var(--pine);
}
.portal-subnav a.sub-link.active {
  color: var(--pine);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 6px 6px 0 0;
}
.portal-subnav .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(12, 27, 26, .08);
  padding: .4rem;
}
.portal-subnav .dropdown-item {
  border-radius: 6px;
  font-size: .9rem;
}
.portal-subnav .dropdown-item.active,
.portal-subnav .dropdown-item:active {
  background: rgba(45, 106, 79, .12);
  color: var(--pine);
}
.portal-subnav .dropdown.show > .dropdown-toggle,
.portal-subnav .nav-group-active > .dropdown-toggle {
  color: var(--pine);
}
.member-hero .hero-kicker {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .65rem;
}
.member-hero .hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.notice-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  padding: 1.15rem 1.2rem;
  height: 100%;
}
.notice-card h2 {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .85rem;
}
.notice-card a {
  color: #fff;
  text-decoration: none;
}
.notice-card a:hover { color: var(--gold); }
.notice-item {
  display: block;
  padding: .55rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .92rem;
}
.notice-item:first-of-type { border-top: 0; padding-top: 0; }
.notice-item .meta { display: block; font-size: .75rem; color: rgba(255,255,255,.6); }
.tile-group-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pine);
  font-weight: 700;
  margin: 1.6rem 0 .7rem;
}
.portal-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
}
.portal-aside h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .85rem;
}
.portal-aside a.ev {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: .55rem 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.portal-aside a.ev:first-of-type { border-top: 0; padding-top: 0; }
.portal-aside a.ev:hover { color: var(--pine); }
.portal-aside .meta { display: block; font-size: .75rem; color: #5c6a67; }
.portal-footer {
  background: var(--forest);
  color: rgba(255,255,255,.82);
  margin-top: 3rem;
  padding: 2.4rem 0 1.4rem;
}
.portal-footer h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}
.portal-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.portal-footer a:hover { color: var(--gold); }
.portal-footer .treaty {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 1.6rem;
  padding-top: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
body.bps-portal .bps-card {
  border-color: var(--line);
  border-radius: 16px;
}
body.bps-portal .alert-light {
  background: #fff;
  border-color: var(--line);
}
