/*--------------------------------------------------------------
This is your custom stylesheet.
--------------------------------------------------------------*/

/* Global BuddyBoss accent override: remove purple, use site blue. */
:root {
  --bb-primary-color: #2f8fcb;
  --bb-primary-color-rgb: 47, 143, 203;
  --bb-primary-button-background-regular: #2f8fcb;
  --bb-primary-button-text-regular: #ffffff;
  --bb-primary-button-border-regular: #2f8fcb;
  --bb-primary-button-background-hover: #2379af;
  --bb-primary-button-text-hover: #ffffff;
  --bb-primary-button-border-hover: #2379af;
}

/* Intentionally minimal: keep BuddyBoss default members filter styling. */

/* Safety reset: if old spacer class exists, keep item visible/normal. */
#buddypanel-menu .menu-item.onv-menu-spacer > a,
.buddypanel-menu .menu-item.onv-menu-spacer > a,
.buddypanel .side-panel-menu > .menu-item.onv-menu-spacer > a {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Invisible top link slot (click opens /news-feed/). */
#buddypanel-menu .menu-item.onv-menu-refresh-slot,
.buddypanel-menu .menu-item.onv-menu-refresh-slot,
.buddypanel .side-panel-menu > .menu-item.onv-menu-refresh-slot {
  min-height: 50px !important;
  height: 50px !important;
}

#buddypanel-menu .menu-item.onv-menu-refresh-slot > a,
.buddypanel-menu .menu-item.onv-menu-refresh-slot > a,
.buddypanel .side-panel-menu > .menu-item.onv-menu-refresh-slot > a {
  min-height: 50px !important;
  height: 50px !important;
  padding: 13px 0 !important;
}

#buddypanel-menu .menu-item.onv-menu-refresh-slot > a > i:not(.bs-submenu-toggle),
#buddypanel-menu .menu-item.onv-menu-refresh-slot > a > .menu-title,
.buddypanel-menu .menu-item.onv-menu-refresh-slot > a > i:not(.bs-submenu-toggle),
.buddypanel-menu .menu-item.onv-menu-refresh-slot > a > .menu-title,
.buddypanel .side-panel-menu > .menu-item.onv-menu-refresh-slot > a > i:not(.bs-submenu-toggle),
.buddypanel .side-panel-menu > .menu-item.onv-menu-refresh-slot > a > .menu-title {
  color: transparent !important;
  opacity: 0 !important;
}

/* National Chamber Standings (ranks tab) */
.onv-chamber-standings .onv-nation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onv-chamber-standings .onv-nation-list-item {
  align-items: center;
  border: 1px solid var(--bb-rl-border-secondary-color, rgba(255,255,255,.2));
  border-radius: 10px;
  color: inherit;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  text-decoration: none;
}

.onv-chamber-standings .onv-nation-list-item:hover {
  background: rgba(255,255,255,.06);
}

.onv-chamber-standings .onv-nation-list-item__left {
  align-items: center;
  display: flex;
  gap: 12px;
}

.onv-chamber-standings .onv-nation-list-item__left img {
  border-radius: 4px;
  height: 28px;
  object-fit: cover;
  width: 42px;
}

.onv-chamber-standings .onv-nation-list-item h4 {
  font-size: 16px;
  margin: 0;
}

.onv-chamber-standings .onv-nation-list-item p {
  font-size: 12px;
  margin: 2px 0 0;
  opacity: .85;
}

.onv-chamber-standings .onv-chamber-header {
  margin-bottom: 14px;
}

.onv-chamber-standings .onv-chamber-back {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  margin-bottom: 10px;
  text-decoration: none;
}

.onv-chamber-standings .onv-chamber-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.onv-chamber-standings .onv-chamber-title img {
  border-radius: 4px;
  height: 26px;
  object-fit: cover;
  width: 40px;
}

.onv-chamber-standings .onv-chamber-title h3 {
  font-size: 20px;
  margin: 0;
}

.onv-chamber-standings .onv-chamber-section {
  border: 1px solid var(--bb-rl-border-secondary-color, rgba(255,255,255,.2));
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.onv-chamber-standings .onv-chamber-section--second {
  background: rgba(28, 96, 184, 0.14);
}

.onv-chamber-standings .onv-chamber-section--first {
  background: rgba(43, 139, 92, 0.12);
}

.onv-chamber-standings .onv-chamber-section__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.onv-chamber-standings .onv-chamber-section__head h4 {
  font-size: 15px;
  margin: 0;
}

.onv-chamber-standings .onv-chamber-section__head span {
  font-size: 12px;
  opacity: .85;
}

.onv-chamber-standings .onv-member-row {
  align-items: center;
  border-top: 1px solid var(--bb-rl-border-secondary-color, rgba(255,255,255,.2));
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.onv-chamber-standings .onv-member-row__left {
  align-items: center;
  display: flex;
  gap: 10px;
}

.onv-chamber-standings .onv-member-row__left img {
  border-radius: 50%;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.onv-chamber-standings .onv-member-row__left a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.onv-chamber-standings .onv-member-row .onv-zone-label {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  opacity: .9;
}

.onv-chamber-standings .onv-member-row__right .onv-score {
  font-size: 13px;
  font-weight: 600;
  opacity: .95;
}

.onv-chamber-standings .onv-member-row.is-swap-zone.swap-down {
  background: rgba(232, 84, 84, 0.16);
}

.onv-chamber-standings .onv-member-row.is-swap-zone.swap-up {
  background: rgba(76, 191, 120, 0.16);
}

.onv-chamber-standings .onv-empty {
  font-size: 13px;
  opacity: .85;
  padding: 10px 12px;
}

/* Constitutional role badges styled like gamification chips. */
#buddypress .item-meta.member-type .onv-role-badge {
  align-items: center;
  background: rgba(8, 34, 67, 0.66);
  border: 1px solid rgba(186, 214, 248, 0.62);
  border-radius: 7px;
  color: #eef6ff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 0;
  letter-spacing: .1px;
  line-height: 1.15;
  max-width: 240px;
  min-height: 28px;
  padding: 4px 7px 3px;
  position: relative;
  text-align: center;
  text-transform: none;
  margin-top: 10px;
  white-space: normal;
  word-break: break-word;
}

#buddypress .item-meta.member-type .onv-role-badge::before {
  content: none;
  display: none;
}

/* Fib alerts onboarding (Oracle bridge) - isolated transparent style */
.onv-fib-onboarding {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 10px;
  color: #f2f8ff;
}

.onv-fib-onboarding .onv-fib-onboarding-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f2f8ff;
}

.onv-fib-onboarding .onv-fib-onboarding-form p,
.onv-fib-onboarding .onv-fib-onboarding-form label {
  color: #f2f8ff !important;
}

.onv-fib-onboarding .onv-fib-onboarding-form input[type="email"],
.onv-fib-onboarding .onv-fib-onboarding-form input[type="text"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #ffffff;
  padding: 10px 12px;
}

.onv-fib-onboarding .onv-fib-onboarding-form input[type="email"]::placeholder,
.onv-fib-onboarding .onv-fib-onboarding-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.onv-fib-onboarding .onv-fib-onboarding-form input[type="checkbox"] {
  accent-color: #2f8fcb;
}

.onv-fib-onboarding .onv-fib-onboarding-form button[type="submit"] {
  background: rgba(47, 143, 203, 0.9);
  border: 1px solid rgba(186, 214, 248, 0.9);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
}

.onv-fib-onboarding .onv-fib-onboarding-form button[type="submit"]:hover {
  background: rgba(35, 121, 175, 0.95);
}

.onv-fib-onboarding .onv-fib-notice {
  margin: 0 0 12px;
}

/* Alerts support page: center content block on background */
body.page-slug-alerts-support .entry-content,
body.page-slug-alerts-support .bb-grid.site-content-grid {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.page-slug-alerts-support .entry-content {
  text-align: left;
}

#buddypress .item-meta.member-type .onv-role-badge .onv-role-text {
  display: block;
  line-height: 1.16;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

#buddypress .item-meta.member-type .onv-role-badge .onv-role-flag {
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 14px;
  left: 2px;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: -18px;
}

#members-list .item-avatar > a {
  position: relative;
}

#members-list .item-avatar .onv-avatar-flag {
  background: transparent;
  border: 0;
  border-radius: 0;
  bottom: -2px;
  box-shadow: none;
  display: inline-block;
  font-size: 14px;
  left: -16px;
  line-height: 1;
  padding: 0;
  position: absolute;
  z-index: 5;
}

#members-list .item .item-meta.member-type {
  overflow: visible;
}

/* Members grid: prevent constitutional role badge clipping on long labels. */
#members-list .item .item-meta.member-type {
  display: flex;
  justify-content: center;
}

#members-list .item .item-meta.member-type .onv-role-badge {
  max-width: 100%;
  width: auto;
  min-width: 0;
}

#members-list .item .item-meta.member-type .onv-role-badge .onv-role-text {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Group-feed placeholder avatar boxes: hide group avatar block, keep author meta. */
#buddypress .activity-list .activity-item .bp-activity-head-group .group-avatar {
  display: none !important;
}

/* Match the small activity search/filter opener icon to theme controls. */
#buddypress .bb-subnav-filters-search > .subnav-filters-opener {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(238, 246, 255, 0.9);
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0;
}

#buddypress .bb-subnav-filters-search > .subnav-filters-opener:hover {
  background: rgba(12, 44, 82, 0.78);
  border-color: rgba(238, 246, 255, 1);
}

#buddypress .bb-subnav-filters-search > .subnav-filters-opener i.bb-icon-search {
  color: #ffffff;
}

/* Group hover-card: hide only default placeholder avatars, keep real group avatars. */
#group-card .bb-card-avatar:has(img[src*="mystery-group"]),
#group-card .bb-card-avatar:has(img[src*="mystery-man"]),
#group-card .bb-card-avatar:has(img[src*="bp_group_default_avatar"]) {
  display: none !important;
}

/* Fallback: suppress avatar block in group hover-card for consistent clean presentation. */
#group-card .bb-card-avatar {
  display: none !important;
}

#group-card .bb-card-body .bb-card-entity {
  width: 100%;
}

#buddypress .item-meta.member-type .onv-role-badge--head-of-state {
  border-color: rgba(237, 195, 74, 0.82);
}

#buddypress .item-meta.member-type .onv-role-badge--head-of-state::before {
  background: #c69511;
}

#buddypress .item-meta.member-type .onv-role-badge--second-chamber {
  border-color: rgba(114, 199, 255, 0.82);
}

#buddypress .item-meta.member-type .onv-role-badge--second-chamber::before {
  background: #1294d8;
}

#buddypress .item-meta.member-type .onv-role-badge--first-chamber {
  border-color: rgba(150, 220, 118, 0.82);
}

#buddypress .item-meta.member-type .onv-role-badge--first-chamber::before {
  background: #58a83d;
}

/* Member hover-card: apply same constitutional badge system as directory cards. */
#profile-card .bb-card-body .bb-card-entity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#profile-card .bb-card-body .bb-card-entity .bb-card-name {
  order: 1;
}

#profile-card .bb-card-body .bb-card-entity .bb-card-profile-type {
  order: 2;
  align-self: flex-start;
  margin-top: 6px !important;
  margin-left: 0 !important;
}

#profile-card .bb-card-body .bb-card-entity > :not(.bb-card-name):not(.bb-card-profile-type) {
  order: 3;
}

#profile-card .bb-card-profile-type.onv-role-badge {
  align-items: center;
  background: rgba(8, 34, 67, 0.72) !important;
  border: 1px solid rgba(186, 214, 248, 0.62) !important;
  border-radius: 8px;
  color: #eef6ff !important;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: .1px;
  line-height: 1.16;
  max-width: 290px;
  min-height: 28px;
  padding: 4px 8px 3px;
  text-align: center;
  text-transform: none;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  position: relative;
  margin-left: 0;
  margin-top: 6px;
}

#profile-card .bb-card-profile-type.onv-role-badge .onv-role-text {
  display: block;
  line-height: 1.16;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

#profile-card .bb-card-profile-type.onv-role-badge .onv-role-flag {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  margin-right: 6px;
  padding: 0;
  position: static;
  left: auto;
  top: auto;
  transform: none;
  z-index: 2;
}

#profile-card .bb-card-avatar,
#profile-card .bb-card-avatar > a {
  position: relative;
}

#profile-card .bb-card-avatar .onv-avatar-flag-card,
#profile-card .bb-card-avatar > a .onv-avatar-flag-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: -8px;
  bottom: -6px;
  top: auto;
  z-index: 6;
}

#profile-card .bb-card-profile-type.onv-role-badge--head-of-state {
  border-color: rgba(237, 195, 74, 0.82) !important;
}

#profile-card .bb-card-profile-type.onv-role-badge--second-chamber {
  border-color: rgba(114, 199, 255, 0.82) !important;
}

#profile-card .bb-card-profile-type.onv-role-badge--first-chamber {
  border-color: rgba(150, 220, 118, 0.82) !important;
}

/* Form readability: maintain strong contrast while editing profile fields. */
#buddypress input[type="text"],
#buddypress input[type="email"],
#buddypress input[type="url"],
#buddypress input[type="number"],
#buddypress input[type="search"],
#buddypress input[type="password"],
#buddypress input[type="tel"],
#buddypress input[type="date"],
#buddypress textarea,
#buddypress select,
#buddypress .select2-container--default .select2-selection--single .select2-selection__rendered,
#buddypress .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: #eef6ff !important;
  -webkit-text-fill-color: #eef6ff !important;
}

#buddypress input::placeholder,
#buddypress textarea::placeholder {
  color: rgba(224, 236, 252, 0.72) !important;
  opacity: 1;
}

#buddypress input:focus,
#buddypress textarea:focus,
#buddypress select:focus,
#buddypress .select2-container--default.select2-container--focus .select2-selection--single,
#buddypress .select2-container--default.select2-container--focus .select2-selection--multiple {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: rgba(186, 214, 248, 0.88) !important;
  box-shadow: 0 0 0 2px rgba(47, 143, 203, 0.22) !important;
}

/* Autofill often forces unreadable dark text in Chromium; normalize it. */
#buddypress input:-webkit-autofill,
#buddypress input:-webkit-autofill:hover,
#buddypress input:-webkit-autofill:focus,
#buddypress textarea:-webkit-autofill,
#buddypress select:-webkit-autofill {
  -webkit-text-fill-color: #eef6ff !important;
  box-shadow: 0 0 0 1000px rgba(14, 80, 125, 0.22) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Alerts support centering: hard-target current live page ID */
body.page-id-6852 .entry-content,
body.page-id-6852 article,
body.page-id-6852 .site-content,
body.page-id-6852 .bb-grid.site-content-grid,
body.page-id-6852 .container,
body.page-id-6852 .content-area {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Alerts membership page centering */
body.page-slug-alerts-membership .entry-content,
body.page-slug-alerts-membership article,
body.page-slug-alerts-membership .site-content,
body.page-slug-alerts-membership .bb-grid.site-content-grid,
body.page-slug-alerts-membership .container,
body.page-slug-alerts-membership .content-area {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-slug-alerts-membership .entry-content {
  text-align: center;
}

/* Fallback: if slug changed (e.g. alerts-membership-2), center by paylink presence */
body:has(a[href*="stichting.pay.clickbank.net"]) .entry-content,
body:has(a[href*="stichting.pay.clickbank.net"]) article,
body:has(a[href*="stichting.pay.clickbank.net"]) .site-content,
body:has(a[href*="stichting.pay.clickbank.net"]) .bb-grid.site-content-grid,
body:has(a[href*="stichting.pay.clickbank.net"]) .container,
body:has(a[href*="stichting.pay.clickbank.net"]) .content-area {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:has(a[href*="stichting.pay.clickbank.net"]) .entry-content,
body.page-slug-alerts-membership-2 .entry-content,
body.page-slug-alerts-membership-2 article,
body.page-slug-alerts-membership-2 .site-content {
  text-align: center !important;
}

/* Strong membership fallback: target the actual ClickBank paylink block itself. */
.entry-content:has(a[href*="stichting.pay.clickbank.net"]) {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.entry-content:has(a[href*="stichting.pay.clickbank.net"]) > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hide WP page title only on ONV Fib Alerts Dashboard (page 6874). */
.page-id-6874 .entry-header,
.page-id-6874 .entry-title {
  display: none !important;
}
