/* Passage page. Night tokens and word boxes come from reader.css. */
html, body { overflow-x: hidden; max-width: 100%; }
.passage-head { padding-top: 8px; }
.passage-head h1 {
  font-family: Cinzel, Georgia, serif; font-weight: 500; font-size: 1.15rem;
  letter-spacing: .04em; color: var(--accent); margin: 0;
}
.passage-head .ref-title { margin-top: 2px; }
.pass-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.pass-nav a, .pass-nav button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 12px; text-decoration: none;
}
.find {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px;
}
.find input { flex: 1 1 12rem; min-width: 0; min-height: 44px; }
.find button { min-height: 44px; }
.verse-block { margin: 0 0 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.verse-block h2 {
  font-family: Cinzel, Georgia, serif; font-size: 1rem; color: var(--accent2);
  font-weight: 500; margin: 0 0 8px;
}
.verse-ask { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.words { min-width: 0; }
.tok .sur { color: var(--accent); }
.tr-grid { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.tr-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  min-width: 0;
}
.tr-card[hidden] { display: none; }
.tr-card .vid {
  font-family: Cinzel, Georgia, serif; font-size: .72rem; letter-spacing: .08em;
  color: var(--accent); margin-bottom: 4px;
}
.tr-card .vtext { font-size: 1.02rem; overflow-wrap: anywhere; }
.tr-card.lat .vtext { font-style: italic; }
.ver-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ver-pick button {
  min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: .85rem;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  -webkit-appearance: none; appearance: none;
}
.ver-pick button:hover, .ver-pick button:focus-visible { border-color: var(--accent2); outline: none; }
.ver-pick button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.xref a { min-height: 36px; }
.play {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin: 8px 0; min-width: 0;
}
.play .src { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.play .pair { color: var(--accent); font-size: 1.15rem; }
.play .pair a { color: inherit; text-decoration: underline; text-underline-offset: .16em; }
.play .pair a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
@media (pointer: coarse) {
  .play .pair a { display: inline-flex; align-items: center; min-height: 44px; }
}
.miss { padding: 12px 0 28px; }
.miss h1 { font-family: Cinzel, Georgia, serif; font-weight: 500; color: var(--accent); font-size: 1.4rem; }
.long-range { padding: 8px 0 20px; }
.isaiah-evidence {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 12px 0;
  padding: 12px;
}
.isaiah-evidence h3 { color: var(--accent2); margin: 0 0 6px; }
.isaiah-evidence p { margin: 6px 0 10px; }
.isaiah-evidence a { color: var(--accent2); }
.isaiah-evidence-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.isaiah-evidence-table th, .isaiah-evidence-table td {
  text-align: start;
  overflow-wrap: anywhere;
  padding: 5px 7px;
  border-bottom: 1px solid var(--line);
}
.isaiah-evidence-table tbody th { font-weight: 500; }
.isaiah-evidence-table a { display: inline-flex; align-items: center; min-height: 38px; }
.isaiah-evidence-table a span { font-size: 1.12rem; }
.isaiah-evidence details { margin-top: 8px; }
.isaiah-evidence summary { cursor: pointer; min-height: 36px; align-content: center; }
.isaiah-evidence .evidence-source { color: var(--muted); font-size: .85rem; }
@media (max-width: 880px) {
  /* The reader sheet starts off the screen. A closed sheet must not cover the version picker. */
  #panel { transform: translateY(120%); }
  #panel.open { transform: translateY(0); }
}
@media (min-width: 720px) {
  .tr-grid.wide { display: grid; grid-template-columns: 1fr 1fr; }
}
