html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #fbfaf7;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.bible-heading {
  margin: 2.5rem 0;
  max-width: 54rem;
}

.bible-card-grid {
  max-width: 64rem;
}

.bible-card {
  color: inherit;
  border: 1px solid rgba(79, 70, 55, 0.18);
  border-radius: 1rem;
  background: #fff;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.bible-card:hover,
.bible-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0.75rem 2rem rgba(52, 45, 34, 0.1);
}

.bible-card-code {
  display: inline-flex;
  min-width: 3.5rem;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: #fff;
  background: #315a46;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.book-tile {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  align-items: center;
  min-height: 4.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(79, 70, 55, 0.18);
  border-radius: 0.75rem;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.book-tile:hover,
.book-tile:focus-visible {
  border-color: rgba(13, 110, 253, 0.5);
  box-shadow: 0 0.35rem 1rem rgba(52, 45, 34, 0.08);
}

.book-abbreviation {
  color: #315a46;
  font-size: 1.05rem;
  font-weight: 750;
}

.book-name {
  color: var(--bs-body-color);
  line-height: 1.25;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.25rem, 1fr));
  gap: 0.65rem;
  max-width: 48rem;
}

.chapter-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  font-weight: 650;
}

.bible-chapter-heading {
  margin-bottom: 1.5rem;
}

.chapter-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}

.chapter-navigation > :last-child {
  justify-self: end;
}

.chapter-navigation-bottom {
  margin-top: 2rem;
}

.verse-list {
  overflow: hidden;
  border: 1px solid rgba(79, 70, 55, 0.18);
  border-radius: 1rem;
  background: #fff;
}

.bible-verse {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

.bible-verse + .bible-verse {
  border-top: 1px solid rgba(79, 70, 55, 0.1);
}

.bible-verse:target,
.bible-verse.is-targeted {
  background: #fff7d6;
}

.verse-link-controls {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: -0.25rem;
  font-family: var(--bs-body-font-family);
  line-height: 1.2;
}

.verse-link-button {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0.2rem;
  color: #315a46;
  background: transparent;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.verse-link-button:hover,
.verse-link-button[aria-current="location"] {
  color: #0d6efd;
}

.verse-link-button:focus-visible {
  color: #0d6efd;
  outline: 2px solid rgba(13, 110, 253, 0.5);
  outline-offset: 2px;
}

.verse-link-button:hover {
  transform: translateY(-1px);
}

.verse-share-icon {
  display: block;
  width: 1rem;
  height: 1rem;
}

.verse-link-button.is-copied {
  color: #146c43;
}

.verse-link-button.is-copy-error {
  color: #b02a37;
}

.verse-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.verse-tag {
  max-width: 100%;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(95, 77, 136, 0.2);
  border-radius: 999px;
  color: #5f4d88;
  background: #f7f3ff;
  font-size: 0.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.verse-number {
  align-self: start;
  border-radius: 0.4rem;
  color: #315a46;
  font-family: var(--bs-body-font-family);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.verse-number:hover,
.verse-number:focus-visible {
  color: #0d6efd;
  background: #edf4ff;
}

.translation-comparison {
  display: grid;
  gap: 1rem;
  max-width: 64rem;
}

.translation-verse-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(79, 70, 55, 0.18);
  border-radius: 1rem;
  background: #fff;
}

.translation-verse-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.translation-verse-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.65;
}

.translation-verse-number {
  margin-right: 0.55rem;
  color: #315a46;
  font-family: var(--bs-body-font-family);
  font-size: 0.9rem;
  font-weight: 750;
}

@media (max-width: 575.98px) {
  .bible-heading {
    margin: 1.75rem 0;
  }

  .chapter-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-navigation > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bible-verse {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.8rem;
  }

  .translation-verse-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
