﻿.bible-books {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.bible-books__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.25rem;
  list-style: disc;
  overflow: visible;
  /* &.ul, ul {
       list-style-type: disc !important;
   }

   &.ol, ol {
       list-style-type: decimal !important;
   }*/
}

.bible-books__list a,
.bible-books__list a.verse-ref {
  color: var(--theme-text);
  font-size: 1.25rem;
  font-weight: inherit;
  text-decoration: none;
}

.bible-books__list a:hover,
.bible-books__list a.verse-ref:hover,
.bible-books__list a.verse-ref:active {
  color: var(--theme-text);
  font-weight: 500;
  text-decoration: none;
}

.bible-chapters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  width: min(100%, 40rem);
  margin: 0 auto 1rem;
}

.bible-chapters__link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.6rem;
  min-height: 2.4rem;
  border: 0.0625rem solid var(--theme-brand);
  border-radius: 0.25rem;
  color: var(--theme-text);
  background: transparent;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
}

.bible-chapters__link:hover {
  color: #fff;
  background: var(--theme-text);
  font-weight: 700;
}

.bible-reader {
  width: min(100%, 52rem);
  margin: 0 auto;
}

.bible-reader__chapter {
  position: relative;
  min-width: 0;
  overflow: visible;
  padding-left: 3.25rem;
  padding-right: 3.25rem;
}

.bible-reader__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.6rem;
  width: 2.25rem;
  pointer-events: none;
}

.bible-reader__rail--next {
  left: auto;
  right: 0.6rem;
}

.bible-reader__move {
  position: sticky;
  top: calc(50vh - 1.125rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border: 0.0625rem solid var(--theme-brand);
  border-radius: 50%;
  background: var(--theme-surface, #fff);
  color: var(--theme-brand);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.35;
  pointer-events: auto;
}

.bible-reader__move:hover {
  color: var(--theme-brand);
  background: var(--theme-surface, #fff);
  font-weight: 500;
  opacity: 1;
}

.bible-reader__move.is-disabled {
  opacity: 0.15;
}

.bible-reader__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem auto 0;
}

.bible-reader__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 0.0625rem solid var(--theme-brand);
  border-radius: 0.25rem;
  background: var(--theme-brand);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}

.bible-reader__button:hover {
  background: transparent;
  color: var(--theme-brand);
  font-weight: 700;
}

@media (min-width: 40rem) {
  .bible-books__list {
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(20, auto);
  }
  .bible-books__list--old {
    grid-template-rows: repeat(20, auto);
  }
}
@media (min-width: 62rem) {
  .bible-books {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
.bible-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: min(100%, 46rem);
  margin: 0 auto;
}

.bible-facts__card .e-card-content {
  font-size: 1.25rem;
  line-height: 1.45;
}

.bible-facts__more {
  margin: 0;
  padding-left: 1.25rem;
}

.bible-facts__more li + li {
  margin-top: 0.65rem;
}

.measure-table {
  overflow-x: auto;
}

.measure-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.measure-table th,
.measure-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 0.0625rem solid var(--theme-border, rgba(0, 0, 0, 0.12));
  text-align: left;
  vertical-align: top;
}

.measure-page,
.measure-page .e-card-header-title,
.measure-page .measure-table,
.measure-page .measure-table th,
.measure-page .measure-table td,
.measure-page .measure-group td,
.measure-page .measure-note {
  color: var(--theme-text, #808080);
}

.measure-page .e-card-header-title,
.measure-page .measure-group td {
  font-weight: 600;
}

.measure-page .measure-table th {
  font-weight: 500;
}

.measure-table sup,
.measure-note sup {
  font-size: 0.7em;
  line-height: 0;
}

.measure-note {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

.calendar-lead {
  margin: 0.2rem 0;
  font-weight: 400;
}

.place-ref {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 0.18rem;
}

.place-ref:hover {
  color: var(--theme-brand);
  font-weight: 600;
  text-decoration: underline dotted;
}

.place-index .place-list {
  margin-top: 1rem;
}

.place-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.place-search .form-control {
  flex: 1 1 16rem;
}

.place-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-list a {
  color: var(--theme-brand);
  text-decoration: none;
}

.place-list a:hover {
  font-weight: 600;
}

.place-list__type {
  margin-left: 0.5rem;
  color: var(--theme-text, #808080);
  font-size: 0.95rem;
}

.place-detail__type,
.place-detail__note {
  margin: 0 0 1rem;
}

.place-detail__note {
  font-style: italic;
}

.place-verses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem 1.75rem;
}

.place-verses__book {
  line-height: 1.6;
}

.place-verses__name {
  margin-right: 0.35rem;
  font-weight: 600;
}

.verse-popup__line.is-selected {
  margin-left: -0.35rem;
  padding: 0.1rem 0.35rem;
  border-left: 0.2rem solid var(--theme-accent, #A89A7D);
  border-radius: 0.2rem;
  background: color-mix(in srgb, var(--theme-accent, #A89A7D) 28%, transparent);
}

@media (min-width: 48rem) {
  .place-verses {
    grid-template-columns: 1fr 1fr;
  }
}
.place-card,
.place-card:hover {
  transform: none;
}

.place-map {
  position: relative;
  width: 100%;
  height: 22rem;
  min-height: 22rem;
  margin: 0 0 1.25rem;
  border-radius: 0.4rem;
  overflow: hidden;
  touch-action: none;
}

.place-marker,
.place-marker.leaflet-div-icon {
  width: 1.75rem;
  height: 2.625rem;
  background: transparent;
  border: none;
  color: var(--theme-brand, #1C352D);
}

.place-marker svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0.1rem 0.15rem rgba(0, 0, 0, 0.35));
}

.place-loading {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.place-loading[hidden] {
  display: none;
}

.place-loading__spinner {
  width: 3.25rem;
  height: 3.25rem;
  border: 0.35rem solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--theme-brand, #1c352d);
  border-radius: 50%;
  animation: place-spin 0.7s linear infinite;
}

@keyframes place-spin {
  to {
    transform: rotate(360deg);
  }
}
.map-leave {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
}

.map-leave[hidden] {
  display: none;
}

.map-leave__card {
  width: min(100%, 28rem);
  padding: 1.25rem;
  border-radius: 0.4rem;
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #808080);
}

.map-leave__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  .place-list {
    grid-template-columns: 1fr 1fr;
  }
}
.measure-page .measure-table .calendar-table,
.measure-page .measure-table .calendar-table th,
.measure-page .measure-table .calendar-table td,
.measure-page .calendar-note,
.measure-page .calendar-stack,
.measure-page .calendar-lead {
  font-size: clamp(0.78rem, 2.8vw, 1.15rem);
}

.calendar-table th,
.calendar-table td {
  overflow-wrap: anywhere;
  padding: 0.35rem 0.3rem;
}

.calendar-watches {
  position: relative;
  min-width: 16rem;
  max-width: 18rem;
  white-space: normal;
  border-left: 0.0625rem solid var(--theme-text, #808080);
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  font-size: 1.25rem;
}

.watch-center {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  right: 0.75rem;
  transform: translateY(-50%);
}

.watch-intro {
  margin-bottom: 0.85rem;
  white-space: normal;
  text-align: left;
}

.watch-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-left: 1.35rem;
}

.watch-line {
  display: grid;
  grid-template-columns: max-content 1rem max-content;
  column-gap: 0.35rem;
  justify-content: start;
  align-items: center;
  width: 100%;
}

.watch-dash {
  text-align: center;
}

.watch-rule {
  width: 66%;
  border-top: 0.0625rem solid currentColor;
  margin: 0.45rem 0;
}

.calendar-note {
  white-space: normal;
  font-size: 1.25rem;
}

.calendar-stack {
  display: none;
}

@media (max-width: 62rem) {
  .measure-table,
  .calendar-note,
  .calendar-watches,
  .calendar-stack {
    font-size: 1.1rem;
  }
  .measure-table {
    overflow-x: auto;
  }
  .calendar-watches,
  .measure-table thead th:last-child {
    display: none;
  }
  .calendar-stack {
    display: block;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 0.0625rem solid var(--theme-text, #808080);
  }
}
@media (max-width: 22.5rem) {
  .calendar-stack .watch-block {
    margin-left: auto;
    margin-right: auto;
  }
}
.verse-popup__line sup,
.bible-reader .verse-popup__line sup {
  display: inline-block;
  min-width: 1.4rem;
  margin-right: 0.2rem;
  text-align: center;
}

.bible-reader .verse-popup__line sup.has-xref a {
  color: var(--theme-accent, #A89A7D);
  font-weight: 600;
  text-decoration: none;
}

.bible-reader .verse-popup__line sup.has-xref a:hover {
  font-weight: 700;
  text-decoration: none;
}
