/* ======================================
   App Shell Layout
====================================== */

button { font-family: inherit; }

/* -------- Header -------- */
header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  z-index: 10;
}

#brandRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
}

#brandLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#lampLogo {
  font-size: 20px;
  line-height: 1;
}

#brandText { min-width: 0; }

#brandName {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#brandTagline {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#btnTopMenu {
  border: 0;
  background: transparent;
  font-size: 18px;
  color: var(--text);
  padding: 4px 6px;
}

/* -------- Verse Navigation -------- */
/* -------- Navigation (sticky like header) -------- */
#verseBar {
  position: sticky;
  top: 48px;              /* must match header height */
  z-index: 9;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}


#verseBar button {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--text);
  width: 32px;
  height: 32px;
  padding: 0;
}

#verseBar button:active { background: var(--rule); }

#verseSelect {
  margin-left: auto;
  height: 32px;
  font-size: 13px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--text);
}

/* -------- Main Content -------- */
main {
  padding: 10px;
  padding-bottom: 58px; /* space for bottom bar */
}

/* Scripture reference */
#textRef {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Scripture text container (Bible tab overrides details) */
#textBody {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
}

/* Divider */
#divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 8px 0;
}

/* Commentary */
#resourceBox {
  font-size: 15px;
  line-height: 1.45;
}

#resourceBox p { margin: 0 0 8px; }

/* Commentary selector */
#commBar {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

#commSelect {
  flex: 1;
  height: 34px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 13px;
  color: var(--text);
}

#btnOpenFull {
  height: 34px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 13px;
  padding: 0 10px;
  color: var(--text);
}

/* -------- Bottom Navigation -------- */
#bottomBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  display: flex;
}

.bottomBtn {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 12px;
  color: var(--muted);
}

.bottomBtn.isActive {
  color: var(--accent);
  font-weight: 700;
}
