/* Word study. Night tokens match the reader. No sideways scroll. */
html, body { overflow-x: hidden; max-width: 100%; }
.wrap { max-width: 40rem; margin: 0 auto; padding: 8px 16px 64px; }
h1.word {
  font-family: "Gentium Book Plus", "Noto Serif Hebrew", Georgia, serif;
  font-weight: 400; font-size: 2.4rem; line-height: 1.2; margin: 8px 0 0; color: var(--accent);
  overflow-wrap: anywhere;
}
h1.word.he, h1.word.arc { font-family: "Noto Serif Hebrew", Georgia, serif; }
.tl { color: var(--muted); font-style: italic; margin: 2px 0; }
.gloss { font-size: 1.25rem; margin: 2px 0 8px; }
.senses a, .rel a, .occ a, .forms a { color: var(--accent2); text-decoration: none; }
.senses a:hover, .rel a:hover, .occ a:hover { text-decoration: underline; }
section { margin: 22px 0; }
section h2 {
  font-family: Cinzel, Georgia, serif; font-weight: 500; font-size: 1rem;
  letter-spacing: .04em; color: var(--accent); margin: 0 0 8px;
}
.note { color: var(--muted); font-size: .95rem; margin: 6px 0; }
.lex { margin: 10px 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lex h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 500; }
.lex .short { margin: 0; }
.lex details { margin-top: 4px; }
.lex summary { min-height: 40px; display: flex; align-items: center; color: var(--accent2); cursor: pointer; }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bars button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  min-height: 40px; padding: 4px 8px;
}
.bars button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.bars .name { flex: 0 0 7.5rem; overflow-wrap: anywhere; }
.bars .track { flex: 1; height: 8px; background: var(--bg2); border-radius: 4px; min-width: 0; }
.bars .fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bars .n { flex: 0 0 3rem; text-align: right; }
.occ-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.occ-row .ref { font-family: Cinzel, Georgia, serif; font-size: .85rem; }
.line { margin: 2px 0; overflow-wrap: anywhere; }
.line.he, .line.arc { font-family: "Noto Serif Hebrew", Georgia, serif; font-size: 1.25rem; }
.line.grc { font-family: "Gentium Book Plus", Georgia, serif; font-size: 1.2rem; color: var(--accent); }
.line .hit { background: rgba(106, 169, 255, .28); border-radius: 3px; }
.ver { color: var(--ink); }
.ver b { font-weight: 500; color: var(--accent); font-family: Cinzel, Georgia, serif; font-size: .72rem; letter-spacing: .06em; }
table.gloss { width: 100%; border-collapse: collapse; }
table.gloss td { padding: 4px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.gloss td.n { text-align: right; white-space: nowrap; }
.form-row, .rel-row { padding: 4px 0; overflow-wrap: anywhere; }
.find { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.find input { flex: 1 1 12rem; min-width: 0; min-height: 44px; }
.find button, .more { min-height: 44px; }
.reading { color: var(--muted); font-size: .95rem; }
.reading a { color: var(--accent2); }
.miss { margin: 18px 0; }

/* Night look for the page's buttons (they do not load the reader's button styles). */
.bars button, button.more, .word-find button {
  color: var(--ink, #e9eef5); background: var(--panel, #18212d); border: 1px solid var(--line, #253246);
  border-radius: 8px; cursor: pointer; font: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: .85rem;
  -webkit-appearance: none; appearance: none;
}
.bars button[aria-pressed="true"] { border-color: var(--accent, #6aa9ff); color: var(--accent, #6aa9ff); }
.bars .track { background: #0c1118; }
button.more { min-height: 44px; padding: 0 16px; margin: 10px 0; }
