/* Shared buttons */
.btn{
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  cursor:pointer;
}
.btn:hover{ border-color: var(--accent); }
.btn.small{ padding: 7px 10px; border-radius: 10px; font-size: 13px; }

.iconBtn{
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 12px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.iconBtn:hover{ border-color: var(--accent); }

/* Bible header: ◁  Matthew 18  ▷ + version on right */
.paneTitleRowBible{
  height: var(--paneHeaderH);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
}

/* Put version on far right */
.paneTitleRowBible .versionLabel{
  margin-left: auto;
}

/* Arrows: glyph-only, not boxed */
.navArrow{
  appearance: none;
  -webkit-appearance: none;

  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;

  cursor: pointer;
  user-select: none;

  color: var(--muted);
  font: inherit;
  font-size: 16px;
  line-height: 1;
}

.navArrow:hover{ color: var(--accent); }
.navArrow:disabled{ opacity: .45; cursor: default; }

/* Two-space look via ~0.55ch (≈ 2 spaces) */
#btnChapPrev{ margin-right: .55ch; }
#btnChapNext{ margin-left:  .55ch; }

/* Clickable title — must NOT look like a link on iOS */
.chapterBtn{
  appearance: none;
  -webkit-appearance: none;

  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;

  cursor: pointer;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;

  color: inherit;
  text-decoration: none;
  font: inherit;
  -webkit-text-fill-color: currentColor;
}

/* Ensure no “blue link” behavior ever */
.chapterBtn:link,
.chapterBtn:visited,
.chapterBtn:hover,
.chapterBtn:active{
  color: inherit;
  text-decoration: none;
}

.chapterBtn .paneTitle{
  padding: 0;
  border: 0;
  font-weight: 700;

  color: inherit;
  text-decoration: none;
  font: inherit;
  -webkit-text-fill-color: currentColor;
}

/* Subtle hover (desktop) without shifting layout */
@media (hover:hover){
  .chapterBtn:hover{
    background: rgba(37,99,235,.06);
    padding: 6px 8px;
    margin: -6px -8px; /* keeps header height stable */
  }
}


/* -----------------------------
   Version picker (top-right)
----------------------------- */

.versionBtn{
  appearance:none;
  -webkit-appearance:none;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  margin: -6px -8px; /* keep header height stable (like chapterBtn hover trick) */
  border-radius: 10px;
  cursor: pointer;
  text-align: right;
}

@media (hover:hover){
  .versionBtn:hover{
    background: rgba(37,99,235,.06);
  }
}

.versionPanel{
  position: absolute;
  /* anchored to the Bible header row */
  right: 14px;
  top: calc(var(--headerH) + var(--paneHeaderH) + 6px); /* below app header + pane title row */
  width: min(320px, calc(100vw - 28px));
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  padding: 6px;
  z-index: 80;
}

.versionItem{
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.versionItem:hover{
  background: rgba(37,99,235,.08);
}

.versionItem[aria-current="true"]{
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--rule));
  background: rgba(37,99,235,.06);
}

.versionItem.disabled{
  opacity: .55;
  cursor: default;
}

.versionItem .sub{
  display:block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
