/* Greek Source Bible study edition (/bible/versions/gsb/study/). Layered on
   /shared/styles/openword-theme.css. Generated by scripts/gsb-site.scm. */

/* Tints are translucent so they read on dark and light backgrounds alike. */
:root {
  --c0: rgba(230, 159, 0, 0.35);
  --c1: rgba(86, 180, 233, 0.35);
  --c2: rgba(0, 158, 115, 0.38);
  --c3: rgba(240, 228, 66, 0.35);
  --c4: rgba(0, 114, 178, 0.45);
  --c5: rgba(213, 94, 0, 0.38);
  --c6: rgba(204, 121, 167, 0.4);
  --c7: rgba(150, 150, 150, 0.4);
  --muted: rgba(127, 127, 127, 0.9);
}

.chs {
  line-height: 1.8;
}
#books caption {
  text-align: left;
  font-weight: bold;
  padding: 0.5em 0 0.25em;
}
/* Swete's own chapter number beside a chapter heading, where it differs. */
.ch h3 small {
  font-weight: normal;
  color: var(--muted);
}
#books a.missing,
.missing,
.label {
  color: var(--muted);
}
.label {
  font-style: italic;
  margin: 0.2em 0;
}

/* A chapter is laid out only when it nears the viewport; browser find still
   searches it. */
.ch {
  content-visibility: auto;
}

.v {
  display: grid;
  grid-template-columns: 2.5em 1fr 1fr;
  gap: 0.15em 1.25em;
  padding: 0.3em 0 0.3em 0.4em;
  border-left: 3px solid transparent;
  position: relative;
}
.v > a {
  grid-column: 1;
}
.v > p {
  grid-column: 2;
  margin: 0;
}
.v .e {
  grid-column: 3;
}
.e p {
  margin: 0 0 0.2em;
}
/* The readable layer: a step quieter than the literal one, still easy to read. */
.e .r {
  opacity: 0.8;
}
.e .l + .r {
  font-size: 0.95em;
}
.nl {
  font-size: 0.8em;
}

/* Untranslated: marked by CSS so no repeated text sits in the DOM. */
.v:not(.t)::after {
  content: "not yet translated";
  grid-column: 3;
  grid-row: 1;
  color: var(--muted);
  font-style: italic;
  font-size: 0.85em;
}
.v.t {
  border-left-color: var(--muted);
}
.v.d {
  border-left-style: dashed;
}
.v.d .e::before {
  content: "draft";
  float: right;
  margin-left: 0.5em;
  color: var(--muted);
  font-size: 0.75em;
  font-style: italic;
}

body.hide-l .e .l,
body.hide-r .e .r {
  display: none;
}

@media (max-width: 45em) {
  .v {
    grid-template-columns: 2em 1fr;
  }
  .v .e,
  .v:not(.t)::after {
    grid-column: 2;
    grid-row: auto;
  }
}

/* Restored Textus Receptus readings: always quietly marked. */
.tr,
.trv {
  text-decoration: underline dotted;
  text-underline-offset: 0.25em;
}
body.c-tr .tr,
body.c-tr .trv {
  background: var(--c0);
}

/* Per-word markup added by gsb.js. */
.w {
  cursor: pointer;
  border-radius: 2px;
}
.w:focus {
  outline: 2px solid currentColor;
}
/* Supplied words: whole segments, or [bracketed] words inside one. */
.s.sup,
.s .sup {
  color: var(--muted);
}
/* Pointed-at word or segment and everything it maps to. Outline and
   background only, so highlighting never moves the text. */
.hi,
body .hi {
  background: var(--c3);
  outline: 2px solid currentColor;
  outline-offset: 1px;
  border-radius: 2px;
}
summary {
  cursor: pointer;
}

body.c-align .a0,
body.c-clause .k0 {
  background: var(--c0);
}
body.c-align .a1,
body.c-clause .k1 {
  background: var(--c1);
}
body.c-align .a2,
body.c-clause .k2 {
  background: var(--c2);
}
body.c-align .a3,
body.c-clause .k3 {
  background: var(--c3);
}
body.c-align .a4,
body.c-clause .k4 {
  background: var(--c4);
}
body.c-align .a5,
body.c-clause .k5 {
  background: var(--c5);
}
body.c-align .a6 {
  background: var(--c6);
}
body.c-align .a7 {
  background: var(--c7);
}

body.c-pos .pv,
#legend .pv {
  background: var(--c5);
}
body.c-pos .pn,
#legend .pn {
  background: var(--c1);
}
body.c-pos .pa,
#legend .pa {
  background: var(--c2);
}
body.c-pos .pt,
#legend .pt {
  background: var(--c7);
}
body.c-pos .pp,
#legend .pp {
  background: var(--c6);
}
body.c-pos .pr,
#legend .pr {
  background: var(--c3);
}
body.c-pos .pc,
#legend .pc {
  background: var(--c4);
}
body.c-pos .pd,
#legend .pd {
  background: var(--c0);
}
body.c-pos .px,
#legend .px {
  outline: 1px dashed currentColor;
}

.pop {
  display: block;
  position: fixed;
  z-index: 10;
  width: max-content;
  max-width: min(30em, 85vw);
  padding: 0.5em 0.75em;
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  line-height: 1.4;
}
.pop > span {
  display: block;
}
.pop .pw {
  font-size: 1.3em;
}
.pop .say button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0.05em 0.5em;
  cursor: pointer;
}
.pop .say .ipa {
  color: var(--muted);
  /* Fonts that are often installed and draw IPA well (the stress mark ˈ,
     ɛ ɣ ð θ ʝ ŋ). Named only, never shipped: they are not public domain
     (gsb/AGENTS.md rule 1). */
  font-family: "Charis SIL", "Doulos SIL", "Gentium Plus", "Gentium",
    "Noto Sans", "DejaVu Sans", "Segoe UI", "Lucida Sans Unicode", sans-serif;
}
.pop .parse {
  color: var(--muted);
}

/* Sticky bar: book and chapter pickers and the display switches. */
/* The site theme sets body to height: 100%, which would end the sticky bar's
   range after one screen; let body grow with its content. */
body {
  height: auto;
  min-height: 100%;
}
#options {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 1em;
  padding: 0.4em 0;
  background: var(--color-primary);
  border-bottom: 1px solid var(--muted);
  font-size: 0.9rem;
}
#options[hidden] {
  display: none;
}
#options label {
  white-space: nowrap;
}
#options select {
  max-width: 11em;
  font: inherit;
}
/* Keep anchor targets clear of the sticky bar (it wraps to two or three rows
   on narrow screens). */
html {
  scroll-padding-top: 3.5em;
}
@media (max-width: 45em) {
  html {
    scroll-padding-top: 6.5em;
  }
}
.notes dd {
  margin-left: 1.5em;
}

/* Search page (study/search/). */
form.search {
  margin: 1em 0;
}
form.search input,
form.search select,
form.search button,
#results button.more {
  font: inherit;
}
form.search input {
  width: min(22em, 60vw);
}
.search-help,
#results .status,
#results .lemmas {
  color: var(--muted);
}
ol.hits {
  padding-left: 1.5em;
}
ol.hits li {
  margin: 0 0 0.8em;
}
ol.hits p {
  margin: 0.1em 0;
}
ol.hits mark {
  background: var(--c3);
  color: inherit;
  border-radius: 2px;
}

/* Verse playback: a small ▶ under each Old Testament verse number, and the
   word being said. */
/* room for the button under the number in a one-line verse */
.v.has-play {
  min-height: 2.9em;
}
.vplay {
  position: absolute;
  left: 0.4em;
  top: 1.7em;
  font: inherit;
  font-size: 0.75em;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0.15em 0.35em;
  cursor: pointer;
}
.vplay:hover,
.vplay:focus-visible {
  color: inherit;
}
.w.speaking {
  background: var(--c3);
  border-radius: 2px;
}

/* Listening page (study/listen/): one word per line, a play button, its IPA. */
ul.listen {
  list-style: none;
  padding-left: 0;
}
ul.listen li {
  margin: 0.25em 0;
}
ul.listen button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0.05em 0.5em;
  cursor: pointer;
}
ul.listen .ipa,
ul.listen .muted {
  color: var(--muted);
}
