[x-cloak] { display: none !important; }

/* ── Sticky footer ──────────────────────────────────── */
html { min-height: 100%; }   /* must be min-height, not height — height:100% clips body when content overflows */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:root {
  --bmr-teal:       #1b6055;
  --bmr-teal-light: #e8f5f3;
  --bmr-teal-mid:   #c8e6e0;
  --bmr-border:     #dee2e6;
}

/* ── Shared Top Navbar ──────────────────────────────── */
.bmr-topnav {
  background: var(--bmr-teal);
  padding: 0 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.bmr-topnav .navbar-brand img { height: 42px; }

/* Nav item spacing */
.bmr-topnav .nav {
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;    /* prevent the nav <ul> from being compressed inside the topnav */
  flex-wrap: nowrap;
  overflow: visible;
}

.bmr-topnav .nav-item {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;    /* never shrink, never grow */
}

.bmr-topnav .nav-link {
  color: rgba(255,255,255,.82) !important;
  display: flex;
  align-items: center;
  font-size: .875rem;
  font-weight: 600;
  padding: 0 1.1rem !important;
  margin: .35rem 0;
  white-space: nowrap;
  border-radius: 7px;
  transition: color .18s, background .18s;
  position: relative;
}
.bmr-topnav .nav-link:hover,
.bmr-topnav .nav-link:focus,
.bmr-topnav .nav-item.show > .nav-link,
.bmr-topnav .nav-link.show,
.bmr-topnav .nav-link[aria-expanded="true"] {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}
/* Active page indicator — underline */
.bmr-topnav .nav-link.active-nav {
  color: #fff !important;
  background: rgba(255,255,255,.14);
}

/* Hide Bootstrap's default caret — we use our own FA icon */
.bmr-topnav .dropdown-toggle::after { display: none !important; }

.bmr-topnav .nav-link.dropdown-toggle {
  gap: .35rem;
  width: auto !important;              /* override style.css: .dropdown .dropdown-toggle { width: 100px } */
  background-color: transparent !important; /* override the teal tint from style.css */
  text-align: inherit !important;
}

.bmr-nav-caret {
  font-size: .6rem;
  flex: 0 0 auto;
  margin-left: 0;
  opacity: .65;
  vertical-align: middle;
  transition: transform .2s;
}

/* Dropdown menu */
.bmr-topnav .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  padding: .45rem;
  min-width: 200px;
  margin-top: .4rem !important;
}
.bmr-topnav .dropdown-item {
  border-radius: 7px;
  padding: .55rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: #2a2a2a;
  transition: background .14s, color .14s;
}
.bmr-topnav .dropdown-item:hover,
.bmr-topnav .dropdown-item:focus {
  background: var(--bmr-teal-light);
  color: var(--bmr-teal);
}

/* Guest sign-in button */
.bmr-signin-btn {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem 1.1rem;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.bmr-signin-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.9);
  color: #fff;
}

/* Logged-in profile button */
.bmr-profile-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 30px;
  color: #fff;
  padding: .3rem .9rem .3rem .35rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s;
}
.bmr-profile-btn:hover { border-color: rgba(255,255,255,.85); }
.bmr-profile-btn img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.5);
}
.bmr-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--bmr-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
  min-width: 180px;
  z-index: 1050;
  overflow: hidden;
}
.bmr-profile-dropdown a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  color: #333;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.bmr-profile-dropdown a:hover { background: var(--bmr-teal-light); }
.bmr-profile-dropdown a.text-danger:hover { background: #fff5f5; }
.bmr-profile-dropdown .dropdown-divider { margin: 4px 0; border-top: 1px solid #f0f0f0; }

/* ── Shared Footer ──────────────────────────────────── */
.bmr-footer {
  margin-top: auto;   /* pushes footer to bottom when content is short */
  background: var(--bmr-teal);
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  padding: 0;
  text-align: left;
}

/* Rich body section */
.bmr-footer-body {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.bmr-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  align-items: flex-start;
}
.bmr-footer-col { min-width: 150px; }

/* Addresses + social grouped as one flex item — pushed to the right */
.bmr-footer-addr-block { min-width: 0; margin-left: auto; }
.bmr-footer-addrs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.25rem;
}
.footer-social-row { display: flex; flex-direction: column; }

.footer-col-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: .65rem;
}

/* Share buttons */
.share-icons { display: flex; gap: .45rem; flex-wrap: wrap; }
.share-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: .88rem;
  transition: opacity .15s, transform .15s;
}
.share-btn:hover { opacity: .82; transform: translateY(-2px); color: #fff; }
.share-fb { background: #1877f2; }
.share-tw { background: #000; }
.x-logo { display: block; }
.share-wa { background: #25d366; }
.share-vb { background: #7360f2; }

/* Address columns */
.footer-addr-text {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  margin: 0 0 .2rem;
  line-height: 1.7;
  white-space: pre-line;
}
.footer-addr-postal {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 .35rem;
}
.footer-map-link {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.footer-map-link:hover { color: rgba(255,255,255,.9); }

/* Social icons (below addresses) */
.social-icons { display: flex; gap: .45rem; flex-wrap: wrap; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: .88rem;
  transition: opacity .15s, transform .15s;
}
.social-btn:hover { opacity: .82; transform: translateY(-2px); color: #fff; }

/* Bottom bar */
.bmr-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem 1rem;
  padding: .85rem 2rem;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.bmr-footer-copy { grid-column: 2; }
.bmr-footer-legal {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 1.25rem;
}
.bmr-footer-legal a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: .35rem 0;       /* comfortable tap target on phones */
}
.bmr-footer-legal a:hover,
.bmr-footer-legal a:focus-visible { text-decoration: underline; }

@media (max-width: 576px) {
  .bmr-footer-body { padding: 1.5rem 1rem 1rem; }
  .bmr-footer-bottom { padding: .75rem 1rem; grid-template-columns: 1fr; }
  .bmr-footer-copy, .bmr-footer-legal { grid-column: 1; justify-self: center; }
  .bmr-footer-grid { gap: 1.5rem; }
  .bmr-footer-col { min-width: 130px; }
}

/* ── Member portal layout (default body) ────────────── */
.bmr-wrapper {
  display: flex;
  align-items: flex-start;
  flex: 1;          /* fills remaining body height; do NOT set a fixed min-height here */
  background: #f4f7f6;
  padding: 1.25rem;
  gap: 1.25rem;
}
.bmr-sidebar {
  width: 260px;
  min-width: 260px;
  flex-shrink: 0;
}
.bmr-sidebar-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--bmr-border);
  overflow: hidden;
}
.bmr-sidebar-profile {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}
.bmr-sidebar-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bmr-teal-mid);
  margin-bottom: .6rem;
}
.bmr-sidebar-name {
  font-weight: 700;
  font-size: .95rem;
  color: #222;
  margin-bottom: .1rem;
}
.bmr-sidebar-email {
  font-size: .78rem;
  color: #888;
  margin-bottom: .6rem;
}
.bmr-no-membership {
  display: inline-block;
  background: var(--bmr-teal);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 20px;
  padding: .25rem 1rem;
}
.bmr-section-divider {
  border: 0;
  border-top: 1px dashed #d0d0d0;
  margin: .75rem 0;
}
.bmr-menu-header {
  background: var(--bmr-teal);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  margin: 0;
}
.bmr-sidebar-link {
  display: block;
  padding: .65rem 1.1rem;
  color: #333;
  font-size: .875rem;
  font-weight: 500;
  border-bottom: 1px dashed #ebebeb;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.bmr-sidebar-link:hover,
.bmr-sidebar-link.active {
  background: var(--bmr-teal-light);
  color: var(--bmr-teal);
}
.bmr-quick-header {
  font-size: .78rem;
  font-weight: 600;
  color: #888;
  text-align: center;
  padding: .5rem 1rem .25rem;
  letter-spacing: .04em;
}
.bmr-sidebar-actions { padding: .5rem .85rem .75rem; display: flex; flex-direction: column; gap: .45rem; }
.btn-bmr-primary {
  background: var(--bmr-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 600;
  padding: .55rem 1rem;
}
.btn-bmr-primary:hover { background: #164d44; color: #fff; }
.btn-bmr-outline {
  background: transparent;
  border: 1.5px solid var(--bmr-border);
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 500;
  color: #555;
  padding: .5rem 1rem;
}
.btn-bmr-outline:hover { border-color: var(--bmr-teal); color: var(--bmr-teal); }
.bmr-sidebar-logout {
  display: block;
  text-align: center;
  color: #dc3545;
  font-size: .875rem;
  font-weight: 600;
  padding: .7rem;
  cursor: pointer;
  text-decoration: none;
}
.bmr-sidebar-logout:hover { background: #fff5f5; }

/* ── Main content area ──────────────────────────────── */
.bmr-content { flex: 1; min-width: 0; }
.bmr-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.bmr-page-title { font-size: 1.4rem; font-weight: 700; color: #1a1a1a; margin: 0; }
.bmr-breadcrumb {
  font-size: .8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.bmr-breadcrumb a { color: var(--bmr-teal); text-decoration: none; }
.bmr-breadcrumb .sep { color: #bbb; }
.bmr-breadcrumb .current { color: var(--bmr-teal); font-weight: 600; }

/* Mobile hamburger toggle button */
.bmr-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  padding: .3rem .55rem;
  cursor: pointer;
  margin-right: .25rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .bmr-mobile-toggle { display: inline-flex; align-items: center; }
}

/* Mobile sidebar backdrop */
.bmr-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  background: rgba(0,0,0,.45);
  z-index: 1035;
}
@media (min-width: 769px) {
  .bmr-sidebar-backdrop { display: none !important; }
}

@media (max-width: 768px) {
  .bmr-wrapper { padding: .75rem; }

  /* Slide-in drawer */
  .bmr-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease, box-shadow .25s ease;
    min-width: 260px;
    width: 260px;
  }
  .bmr-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 6px 0 28px rgba(0,0,0,.22);
  }
  .bmr-sidebar-backdrop.is-open {
    display: block;
  }
}

/* Mobile nav panel (guest users — public nav links) */
.bmr-mobile-nav {
  background: #164d44;
  border-top: 1px solid rgba(255,255,255,.12);
  position: sticky;
  top: 56px;
  z-index: 1029;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.bmr-mobile-nav a {
  display: block;
  padding: .75rem 1.5rem;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .15s;
}
.bmr-mobile-nav a:last-child { border-bottom: 0; }
.bmr-mobile-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (min-width: 769px) { .bmr-mobile-nav { display: none !important; } }

/* Sidebar site-links section — only on mobile */
.bmr-sidebar-site-links { display: none; }
@media (max-width: 768px) { .bmr-sidebar-site-links { display: block; } }
