/* ---------- KJV word guide ---------- */
.kw {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-decoration: underline dotted rgba(var(--ink), 0.5) 1px;
  text-underline-offset: 0.2em;
}

.kw.is-on,
.kw:focus-visible { outline: none; text-decoration: underline solid var(--fg) 2px; }

.wordtip {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 32px));
  padding: 18px 48px 18px 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(var(--ink), 0.2);
  border-radius: 18px;
  background: var(--sheet);
  color: var(--fg);
  box-shadow: 0 12px 40px var(--shadow);
}

.wordtip[hidden] { display: none; }
.wordtip__word { font-size: 13px; color: var(--muted); }
.wordtip__meaning { margin-top: 4px; font-size: 18px; line-height: 1.35; }
.wordtip__note { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.wordtip__ta { margin-top: 6px; font-size: 17px; line-height: 1.45; }
.wordtip p[hidden] { display: none; }

.wordtip__close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.wordtip__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
