.lawCard {
  padding: var(--mantine-spacing-xs);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 3px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  min-height: 100px;
}

.lawCardContent {
  position: relative;
  display: flex;
  flex-direction: column;
}

.withFactionIcon {
  padding-left: 44px; /* Space for larger faction icon */
}

.gavelBadge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.9), rgba(51, 65, 85, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gavelIcon {
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.factionBadge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.factionIcon {
  /* CircularFactionIcon styling handled by component */
}

.textBackground {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.4) 0%, rgba(51, 65, 85, 0.2) 50%, rgba(30, 41, 59, 0.4) 100%);
  border-left: 3px solid rgba(59, 130, 246, 0.6);
  border-radius: 0 2px 2px 0;
  padding: var(--mantine-spacing-xs);
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
}

.backgroundPattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(148, 163, 184, 0.03) 0px,
      rgba(148, 163, 184, 0.03) 1px,
      transparent 1px,
      transparent 8px
    );
  pointer-events: none;
  opacity: 0.4;
}

.titleRow {
  display: flex;
  align-items: center;
  gap: var(--mantine-spacing-xs);
}

.lawTitle {
  font-size: var(--mantine-font-size-sm);
  font-weight: 700;
  font-family: var(--mantine-font-family-heading);
  color: var(--mantine-color-slate-1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  line-height: 1.1;
  min-width: 0;
}

.mapText {
  font-size: var(--mantine-font-size-xs);
  font-weight: 400;
  color: var(--mantine-color-slate-3);
  line-height: 1.3;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  padding-left: 8px;
  border-left: 2px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 4px;
}

.electedBadge {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.electedText {
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}