/* Shared by React LanternCheckbox and the static historical atlas. */
.lantern-checkbox {
  position: relative;
  display: inline-flex;
  flex: 0 0 32px;
  width: 32px;
  height: 44px;
  min-height: 44px;
  vertical-align: middle;
  align-self: center;
  isolation: isolate;
  align-items: center;
  justify-content: center;
}
.lantern-checkbox > input[type="checkbox"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
  z-index: 1;
}
.lantern-checkbox-art {
  position: relative;
  display: block;
  width: 28px;
  height: 32px;
  pointer-events: none;
  background: url(lionLantern.png) 0 0 / 200% 100% no-repeat;
  filter: drop-shadow(0 0 2px #24180f55);
}
.lantern-checkbox-art::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 1px solid #6e5027;
  border-radius: 2px;
  background: #efe0ba;
  box-shadow:
    inset 0 0 0 1px #d2ad66,
    0 0 2px #24180f66;
  color: #322211;
  font:
    bold 12px/1 Georgia,
    serif;
  text-shadow: none;
}
.lantern-checkbox > input:checked + .lantern-checkbox-art {
  background-position: 100% 0;
}
.lantern-checkbox > input:checked + .lantern-checkbox-art::after {
  content: "✓";
  background: #f4d78d;
}
.lantern-checkbox > input:indeterminate + .lantern-checkbox-art::after {
  content: "−";
}
.lantern-checkbox > input:focus-visible + .lantern-checkbox-art {
  outline: 2px solid #bb9149;
  outline-offset: 3px;
  border-radius: 3px;
}
.lantern-checkbox > input:disabled {
  cursor: not-allowed;
}
.lantern-checkbox > input:disabled + .lantern-checkbox-art {
  opacity: 0.45;
  filter: grayscale(0.7);
}
@media (forced-colors: active), print {
  .lantern-checkbox {
    width: 24px;
    height: 28px;
    min-height: 28px;
    flex-basis: 24px;
  }
  .lantern-checkbox > input[type="checkbox"] {
    opacity: 1 !important;
    appearance: auto !important;
    accent-color: auto;
  }
  .lantern-checkbox-art {
    display: none;
  }
}
