.bylaw-section-id {
  float: left;
  margin-right: 0.3em;
}

.bylaw-section-id::before {
  content: attr(data-section);
}

.bylaw-label-text > p:first-of-type {
  margin-top: 0;
}

.bylaw-clause {
  margin-bottom: 1em;
}

.bylaw-clause strong {
  display: block;
  font-size: 1.1em;
  margin-bottom: 0.25em;
}

.bylaw-content {
  margin-left: 1em;
  font-size: 0.95em;
}

.vote-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  font-size: 0.85em;
  color: #555;
  margin-left: 4px;
}

.vote-tooltip .tooltip-content {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: pre-wrap;
  font-size: 0.75em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 9999;
  min-width: 160px;
  max-width: 280px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vote-tooltip:hover .tooltip-content {
  opacity: 1;
  pointer-events: auto;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  background: red;
  color: white;
  z-index: 9999;
  padding: 5px;
}

/* Search highlighting */
.bcm-highlight {
  background-color: #ffeb3b;
  color: #000;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}

/* Dark mode variant */
@media (prefers-color-scheme: dark) {
  .bcm-highlight {
    background-color: #ffc107;
    color: #000;
  }
}

/* Alternative dark class if manually set */
.dark-mode .bcm-highlight {
  background-color: #ffc107;
  color: #000;
}

/* Print styles - hide toolbar buttons but show search term */
@media print {
  #bcm-toolbar button {
    display: none !important;
  }
  
  #bcm-toolbar label {
    display: none !important;
  }
  
  #bcm-content-filter {
    border: none !important;
    background: transparent !important;
    font-weight: bold;
  }
  
  #bcm-content-filter:empty,
  #bcm-content-filter[value=""] {
    display: none !important;
  }
}