/* Exegesis Light — module styles (scoped under .exegesis) */

@font-face {
  font-family: "Octava";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/octava/OctavaC.woff2") format("woff2");
}
@font-face {
  font-family: "Octava";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/octava/OctavaC-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Octava";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/octava/OctavaC-Italic.woff2") format("woff2");
}

.exegesis {
  align-items: flex-start;
}

.exegesis .sidebar_left,
.exegesis .sidebar_right {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  flex: 0 0 auto;
}

.exegesis .sidebar_left {
  width: 147px;
  min-width: 147px;
  margin: 0 49px 0 0;
}

.exegesis .sidebar_right {
  width: 147px;
  min-width: 147px;
  margin: 0 0 0 49px;
}

.exegesis .content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Links on the Exegesis page never draw the site-wide underline. */
.exegesis a, .exegesis a:hover {
  border-bottom: none;
}

.exegesis a:hover {
  color: var(--blue-base);
}

.exegesis .ex-side-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 24px 0 10px;
  color: var(--sidebar-title-color);
}

.ex-testament {
  margin: 0;
}
.ex-testament > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ex-testament > summary::-webkit-details-marker {
  display: none;
}
.ex-testament > summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--darkgrey-color, #777777);
}
.ex-testament[open] > summary::after {
  content: "\2212";
}
.ex-testament > summary:hover {
  color: var(--blue-base, #1773bf);
}

.ex-side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.ex-side-nav a {
  color: var(--sidebar-link-color);
  text-decoration: none;
  border-bottom: 0;
  font-size: 15px;
}
.ex-side-nav a:hover,
.ex-side-nav a.active {
  color: var(--blue-base, #1773bf);
}

.ex-book-nav {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}

.ex-book-nav__group {
  margin: 12px 0 4px;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--seven-color);
}
.ex-book-nav__link {
  display: block;
  padding: 3px 0;
  color: var(--sidebar-link-color);
  text-decoration: none;
  border-bottom: 0;
}
.ex-book-nav__link:hover,
.ex-book-nav__link.active {
  color: var(--blue-base, #1773bf);
}

.ex-book > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ex-book > summary::-webkit-details-marker {
  display: none;
}
.ex-book > summary::after {
  content: "+";
  font-size: 13px;
  color: var(--seven-color);
}
.ex-book[open] > summary::after {
  content: "\2212";
}

.ex-chapter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 6px 0 10px;
}
.ex-chapter-grid a {
  display: inline-flex;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--menu-border-color, #d5d5d5);
  border-radius: 4px;
  font-size: 12px;
  color: var(--black-base, #000000);
  text-decoration: none;
}
.ex-chapter-grid a:hover,
.ex-chapter-grid a.active {
  background: var(--blue-base, #1773bf);
  border-color: var(--blue-base, #1773bf);
  color: #ffffff;
}
.ex-chapter-grid--sidebar a {
  height: 24px;
  min-width: 24px;
  font-size: 11px;
}

.ex-breadcrumbs {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--darkgrey-color, #777777);
  margin-bottom: 12px;
}
.ex-breadcrumbs a {
  color: var(--blue-base, #1773bf);
  text-decoration: none;
  border-bottom: 0;
}

.ex-lead {
  text-indent: 0;
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.ex-search {
  margin: 0 auto 28px;
}

.ex-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.ex-book-group {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--darkgrey-color, #777777);
}
.ex-book-grid .ex-book-card {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid var(--blue-base);
  border-radius: 6px;
  text-decoration: none;
  color: var(--blue-base);

}
.ex-book-grid .ex-book-card:hover {
  background-color: var(--e-color);
  border: 1px solid var(--darkgrey-color);
  color: var(--black-base);
}
.ex-book-card__title {
  font-weight: 600;
}
.ex-book-card__meta {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: var(--darkgrey-color);
}

.ex-chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 24px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}
.ex-chapter-nav a {
  color: var(--blue-base, #1773bf);
  text-decoration: none;
  border-bottom: 0;
}

.ex-verse-list__item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--c-color);
}
.ex-verse-list__num {
  flex: 0 0 auto;
}
.ex-verse-list__item .ex-verse-list__text {
  flex: 1 1 auto;
  color: var(--darkgrey-color);
  text-decoration: none;
  border-bottom: 0;
  font-family: "Octava", "PT Serif", serif;
  font-size: 1em;
  line-height: 1.5;
}
.ex-verse-list__item .ex-verse-list__text:hover {
  color: var(--blue-base, #1773bf);
}
.ex-verse-list__meta {
  display: none;
  flex: 0 0 auto;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: var(--darkgrey-color, #777777);
  white-space: nowrap;
}

.ex-verse-text {
  font-family: "Octava", "PT Serif", serif;
  font-size: 1.2em;
  line-height: 1.4;
  margin: 18px auto 26px;
  padding: 16px 20px;
  max-width: 900px;
  background: var(--e-color);
  border-radius: 8px;
}

.ex-verse-nav {
  max-width: 900px;
  margin: 0 auto 26px;
}

.ex-commentary {
  border-bottom: 1px solid var(--menu-border-color, #ececec);
  padding: 22px 0 8px;
}
.ex-commentary:last-of-type {
  border-bottom: 0;
}
.ex-commentary__author {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  text-align: left;
  margin: 0 0 6px;
}
.ex-commentary__author a {
  color: var(--black-base, #000000);
  text-decoration: none;
  border-bottom: 0;
}
.ex-commentary__author a:hover {
  color: var(--blue-base, #1773bf);
}
.ex-anchor {
  margin-left: 8px;
  font-size: 12px;
  color: var(--darkgrey-color, #999999);
  text-decoration: none;
  border-bottom: 0;
}
.ex-commentary__body p {
  text-indent: 0;
  margin-bottom: 12px;
}
.ex-commentary__body .work {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--darkgrey-color, #777777);
  margin: 2px 0 10px;
}
.ex-commentary__body .unresolved {
  border-bottom: 1px dotted currentColor;
}

.ex-author-book {
  text-align: left;
  margin-top: 22px;
}
.ex-search__meta {
  text-align: center;
  text-indent: 0;
  color: var(--darkgrey-color, #777777);
}
.ex-search-list {
  margin-bottom: 24px;
}
.ex-search-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--menu-border-color, #e5e5e5);
}
.ex-search-item__ref {
  font-weight: 700;
}
.ex-search-item__author {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--darkgrey-color, #777777);
}
.ex-search-item p {
  text-indent: 0;
  margin: 6px 0 0;
}
.ex-empty {
  text-indent: 0;
  text-align: center;
  color: var(--darkgrey-color, #777777);
}

.ex-mobile-bar,
.ex-panel-toggle,
.ex-panel-close,
.ex-overlay {
  display: none;
}

@media (max-width: 800px) {
  .main-container.exegesis {
    display: block;

  }
  .exegesis .sidebar_left,
  .exegesis .sidebar_right {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1000;
    width: min(86vw, 340px);
    min-width: 0;
    margin: 0;
    padding: 20px 18px 32px;
    background-color: var(--e-color);
    box-shadow: 0 0 24px rgba(0, 0, 0, .25);
    overflow-y: auto;
    transition: transform .25s ease;
  }
  .exegesis .sidebar_left {
    left: 0;
    transform: translateX(-105%);
  }
  .exegesis .sidebar_right {
    right: 0;
    transform: translateX(105%);
  }
  .exegesis.ex-panel-left-open .sidebar_left,
  .exegesis.ex-panel-right-open .sidebar_right {
    transform: translateX(0);
  }
  .ex-mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 15px;
    right: 15px;
    bottom: 14px;
    z-index: 1100;
    justify-content: space-between;
  }
  .ex-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 20px;
    border: 1px solid var(--blue-base, #1773bf);
    border-radius: 24px;
    background: var(--blue-base, #1773bf);
    color: #ffffff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }
  .ex-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 0 8px auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--black-base, #000000);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }
  .ex-overlay:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, .45);
  }
  .exegesis .content {
    padding: 22px 15px 32px;
  }
}
