.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 10px;
}

.official-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--official-green-dark);
  text-align: center;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.official-mark small {
  display: block;
  margin-top: 3px;
  font-size: 0.38rem;
  font-weight: 600;
  line-height: 1.1;
}

.official-mark-apc {
  border-color: #AAD5C0;
  color: var(--official-green-dark);
}

.official-mark-kwara {
  border-color: #D8E9DF;
  color: var(--official-green-dark);
}

.official-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-orange-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hamburger-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--brand-orange-border);
  background: var(--brand-orange-tint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--ink-primary);
  font-size: 1.15rem;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.jump-bar {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

.jump-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jump-select {
  appearance: none;
  background: var(--bg-warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 36px 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.btn-solid-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.btn-solid-orange:hover {
  background: var(--brand-orange-dark);
}

.btn-solid-orange.btn-compact {
  width: auto;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  color: var(--ink-primary);
  border: 1.5px solid var(--ink-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-outline-dark:hover {
  background: var(--brand-orange-tint);
}

.btn-outline-dark.btn-compact {
  width: auto;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.84rem;
}

.icon-link-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
  padding: 6px 2px;
}

.icon-sq-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-orange);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.pill-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 18px;
}

.pill-strip::-webkit-scrollbar {
  display: none;
}

.pill-tab {
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--ink-primary);
  flex-shrink: 0;
}

.pill-tab.is-active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #FFFFFF;
}

.pill-next-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-primary);
  background: var(--bg-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.accordion-list {
  border-top: 1px solid var(--border-light);
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px;
  text-align: left;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.accordion-panel {
  padding: 0 2px 20px;
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

.accordion-panel[hidden] {
  display: none;
}

.clean-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 20px;
}

.role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-orange-dark);
  background: var(--brand-orange-tint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.floating-dock-wrap {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.floating-dock {
  pointer-events: auto;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-menu-pill {
  height: 54px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--ink-primary);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-float);
  flex-shrink: 0;
}

.dock-action-bar {
  flex: 1;
  height: 54px;
  padding: 6px 8px 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dock-brand-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.dock-plus-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop[hidden] {
  display: none;
}

.sheet-card {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-white);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
}

.drawer-backdrop {
  align-items: stretch;
  justify-content: flex-end;
}

.drawer-card {
  height: 100%;
  max-height: none;
  max-width: 420px;
  border-radius: 0;
  padding: 28px 20px;
  animation: drawer-enter 180ms ease-out;
}

@keyframes drawer-enter {
  from { transform: translateX(24px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  background: var(--bg-warm);
}

.drawer-nav-link:hover {
  background: var(--brand-orange-tint);
  color: var(--brand-orange-dark);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-primary);
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: 2px solid var(--brand-orange);
  border-color: var(--brand-orange);
}

.alert-box {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.wizard-step {
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--ink-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.wizard-step.is-current {
  background: var(--brand-orange-tint);
  color: var(--brand-orange-dark);
  box-shadow: inset 0 -3px var(--brand-orange);
}

.wizard-title {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.wizard-actions > * {
  flex: 1;
}

.privacy-notice {
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--ink-secondary);
  font-size: 0.88rem;
}

.privacy-notice p + p {
  margin-top: 10px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.consent-row input {
  margin-top: 4px;
  accent-color: var(--brand-orange);
}

.status-text {
  margin-top: 6px;
}

.status-verified {
  color: var(--status-green);
}

.status-pending {
  color: var(--status-amber);
}

.status-error {
  color: var(--status-red);
}

.membership-card {
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--brand-orange);
  border-radius: 20px;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--brand-orange-tint) 100%);
  box-shadow: var(--shadow-float);
}

.membership-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.membership-card h2 {
  margin: 10px 0 4px;
  font-size: 1.35rem;
}

.membership-id {
  margin-bottom: 12px;
  color: var(--brand-orange-dark);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.membership-status {
  align-self: flex-start;
  color: var(--status-amber);
  font-size: 0.75rem;
  font-weight: 800;
}

.breakdown-list {
  display: grid;
  gap: 12px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) 2fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
}

.breakdown-track {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--border-light);
}

.breakdown-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand-orange);
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.advert-card {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.advert-media,
.advert-placeholder {
  width: 100%;
  max-height: 260px;
  aspect-ratio: 16 / 7;
  border-radius: 12px;
  object-fit: cover;
  background: var(--brand-orange-tint);
}

.advert-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-orange-dark);
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-white);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

th {
  background: var(--brand-orange-tint);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.location-filter-grid {
  margin: 12px 0;
}

.group-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.group-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #FFFFFF;
}

.group-result-card.is-selected,
.group-result-card:hover {
  border-color: var(--official-green);
  background: #F1F8F4;
}

.group-result-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.group-result-card small {
  display: block;
  margin-top: 3px;
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
}

.group-logo,
.group-logo-fallback {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.group-directory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.group-directory-details {
  min-width: 180px;
  flex: 1;
}

.group-logo-fallback {
  display: inline-grid;
  place-items: center;
  color: var(--official-green-dark);
  font-weight: 900;
}

.group-logo-preview,
.group-logo-large {
  width: 112px;
  height: 112px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: #FFFFFF;
  object-fit: contain;
}

.group-logo-card {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #FFFFFF;
}

.dashboard-nav {
  position: sticky;
  top: 64px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
}

.dashboard-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--official-green-dark);
  font-size: .88rem;
  font-weight: 700;
}

.dashboard-nav a:hover,
.dashboard-nav a:focus-visible {
  background: #EAF5EF;
}

.dashboard-nav button {
  margin-left: auto;
}

.text-link {
  color: var(--official-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 22px 0 calc(92px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--ink-secondary);
  font-size: 0.82rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer a {
  color: var(--official-green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.leadership-card {
  overflow: hidden;
}

.leadership-photo-panel {
  position: relative;
  margin: -20px -20px 20px;
}

.leadership-photo {
  width: 100%;
  height: 220px;
  border-radius: 15px 15px 0 0;
  object-fit: cover;
  object-position: center 35%;
}

.leadership-photo-secondary {
  position: absolute;
  right: 12px;
  bottom: -12px;
  width: 66px;
  height: 78px;
  border: 3px solid var(--bg-white);
  border-radius: 12px;
  object-fit: cover;
  object-position: center 25%;
  box-shadow: var(--shadow-float);
}

.leadership-card h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

:root[data-theme="dark"] .top-bar {
  background: rgba(31, 41, 55, 0.94);
}

:root[data-theme="dark"] .jump-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F8FAFC' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .dock-menu-pill {
  background: var(--brand-orange-dark);
}

:root[data-theme="dark"] .hamburger-btn svg {
  filter: brightness(1.65);
}

:root[data-theme="dark"] .group-result-card {
  background: var(--bg-white);
}

:root[data-theme="dark"] .group-result-card.is-selected,
:root[data-theme="dark"] .group-result-card:hover {
  background: #173629;
}

:root[data-theme="dark"] .dashboard-nav {
  background: rgba(31, 41, 55, 0.96);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .dashboard-nav a:hover,
:root[data-theme="dark"] .dashboard-nav a:focus-visible {
  background: #173629;
}

:root[data-theme="dark"] .alert-error {
  background: #3F1D24;
  color: #FECDD3;
  border-color: #7F1D1D;
}

:root[data-theme="dark"] .alert-success {
  background: #153323;
  color: #BBF7D0;
  border-color: #166534;
}

body.dashboard-page .site-footer {
  padding-bottom: 22px;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.admin-container {
  max-width: 1180px;
}

.dashboard-page {
  padding-bottom: 32px;
}

.dashboard-page .floating-dock-wrap {
  display: none;
}

section[id],
header[id] {
  scroll-margin-top: 140px;
}

@media (min-width: 680px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-bar-inner {
    gap: 6px;
    min-height: 58px;
  }

  .official-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .brand-lockup {
    gap: 6px;
  }

  .brand-lockup > svg {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .brand-name {
    font-size: .78rem;
  }

  .brand-sub {
    max-width: 110px;
    font-size: .55rem;
  }

  .hamburger-btn {
    width: 38px;
    height: 38px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }

  .wizard-actions > * {
    min-width: min(100%, 150px);
  }

  .dashboard-nav {
    top: 58px;
    gap: 4px;
    padding: 8px;
  }

  .dashboard-nav a {
    padding: 7px 9px;
    font-size: .78rem;
  }

  .dashboard-nav button {
    margin-left: 0;
  }

  .group-result-card {
    align-items: flex-start;
  }

  .group-result-card .role-tag {
    display: none;
  }
}

@media print {
  body {
    padding: 0;
    background: #FFFFFF;
  }

  body * {
    visibility: hidden;
  }

  #membershipCard,
  #membershipCard * {
    visibility: visible;
  }

  #membershipCard {
    position: absolute;
    inset: 20px auto auto 20px;
    width: 90%;
    box-shadow: none;
  }

  .no-print {
    display: none !important;
  }
}
