/* Way Truth Life v2.0 — Responsive Layout & Mobile Readability System */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(17px * var(--font-scale)); font-family: 'Inter', system-ui, -apple-system, sans-serif; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-text-size-adjust: 100%; }

.shell-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 14px calc(104px + env(safe-area-inset-bottom, 12px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  html { font-size: calc(16px * var(--font-scale)); }
  .shell-grid {
    padding: 24px 24px 56px;
    gap: 24px;
  }
}

.brand-lockup-img {
  height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .brand-lockup-img {
    height: 52px;
    max-width: 260px;
  }
}

.scripture-body {
  font-size: 1.08rem;
  line-height: 1.8;
}

.scripture-verse {
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.scripture-verse:hover {
  background: var(--surface-2);
}

.verse-num {
  color: var(--brand);
  font-weight: 700;
  margin-right: 6px;
  font-size: 0.85em;
}

.interlinear-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.interlinear-chip {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 82px;
}

.interlinear-orig {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
}

.bible-tools-drawer {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}

.bible-tools-drawer summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
}

.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
}

.mobile-tabbar .btn {
  flex: 1;
  min-height: 44px;
  padding: 6px 4px;
  font-size: 0.78rem;
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-tabbar { display: none; }
}
