*,
::before,
::after {
  box-sizing: inherit;
}

a {
  color: var(--ui-border);
  font-weight: bold;
}

body {
  background-color: var(--ui-base-bg);
  color: var(--ui-base-fg);
  height: 100%;
  margin: 0;
  padding: 0;
}

body * {
  max-height: 1000000px;
}

h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.0rem 0 0.5rem 0;
}

h3 {
  font-size: 1.0rem;
  font-weight: 700;
  margin: 1.0rem 0 0.25rem 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--ui-base-fg);
}

html {
  font-family: sans-serif;
  font-size: 16px;
  height: 100%;
}

input {
  background-color: var(--ui-base-bg);
  border: none;
  border-radius: 0;
  color: var(--ui-base-fg);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  outline: none;
  padding: 0;
}

p {
  margin: 0 0 1.0rem 0;
  padding: 0;
}

textarea {
  background-color: var(--ui-base-bg);
  color: var(--ui-base-fg);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  outline: none;
  padding: 0;
}

ul {
  padding-left: 2.0rem;
}

j {
  font-style: italic;
  color:red
}

f {
  font-size: 0px;
}

blockquote{
  font-size: inherit;
  width:75%;
  margin:50px auto;
  font-family:Open Sans;
  font-style:italic;
  color: var(--ui-hint-fg);
  padding:1.2em 30px 1.2em 75px;
  border-left:8px solid var(--ui-hint-bg) ;
  line-height:1.6;
  position: relative;
  background:var(--ui-success-bg)
}

blockquote::before{
  font-family:Arial;
  content: "\201C";
  color:var(--ui-hint-bg);
  font-size:4em;
  position: absolute;
  left: 10px;
  top:-10px;
}

blockquote::after{
  content: '';
}

blockquote span{
  display:block;
  color:#333333;
  font-style: normal;
  font-weight: bold;
  margin-top:1em;
}

.acrostic {
  line-height: 1.0rem;
  margin-bottom: 0.5rem;
  text-align: center;
}



.action-menu {
  background-color: var(--ui-tool-bg);
  border-radius: var(--border-radius);
  display: flex;
  flex-flow: row nowrap;
  position: absolute;
  right: 0.5rem;
}

.banner {
  align-self: center;
  background-color: transparent;
  flex: 1 1 auto;
  line-height: 1.0rem;
  overflow: hidden;
  padding: calc((var(--target-size) - 1.0rem) / 2) 0.5rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bold {
  font-weight: bold;
}

.book-divider {
  margin: 0.25rem;
}

.btn-banner {
  align-self: center;
  background-color: transparent;
  cursor: pointer;
  flex: 1 1 auto;
  height: 100%;
  line-height: 1.0rem;
  overflow: hidden;
  padding: calc((var(--target-size) - 1.0rem) / 2) 0.5rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-banner--active {
  background-color: var(--ui-hint-bg);
  color: var(--ui-hint-fg);
}

.btn-banner--bookmark-list {
  width: 100%;
}

.btn-banner--search-result {
  line-height: 1.2rem;
  padding: calc((var(--target-size) - 2.4rem) / 2) 0.5rem;
  width: 100%;
}

.btn-banner--search-result-error {
  line-height: 1.0rem;
  padding: calc((var(--target-size) - 1.0rem) / 2) 0.5rem;
}

.btn-book,
.btn-chapter {
  cursor: pointer;
  flex: 0 0 20%;
  height: var(--target-size);
  line-height: var(--target-size);
  text-align: center;
}

.btn-book--active,
.btn-chapter--active {
  background-color: var(--ui-hint-bg);
  border-radius: var(--border-radius);
  color: var(--ui-hint-fg);
}

.btn-dialog {
  background-color: var(--ui-bg-1);
  border: 1px solid var(--ui-base-fg);
  border-radius: var(--border-radius);
  cursor: pointer;
  flex: 0 1 auto;
  height: var(--target-size);
  line-height: var(--target-size);
  margin-left: 0.5rem;
  padding: 0 1.0rem;
}

.btn-entry {
  cursor: pointer;
  flex: 1 1 auto;
  line-height: var(--target-size);
  padding: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  width: 272px;
  white-space: nowrap;
}

.btn-filter {
  cursor: pointer;
  display: block;
  height: var(--target-size);
  line-height: var(--target-size);
  padding: 0 0.5rem;
  text-align: left;
}

.btn-filter--active {
  background-color: var(--ui-hint-bg);
  border-radius: var(--border-radius);
  color: var(--ui-hint-fg);
}

.btn-filter--chapter {
  margin-left: var(--target-size);
}

.btn-font-size {
  cursor: pointer;
  color: var(--ui-tool-fg);
  height: calc(var(--target-size) - 6px);
  line-height: calc(var(--target-size) - 6px);
  margin: 3px;
  text-align: center;
  width: calc(var(--target-size) - 6px);
}

.btn-font-size--active {
  background-color: var(--ui-hint-bg);
  border-radius: var(--border-radius);
  color: var(--ui-hint-fg);
}

.btn-font-variant {
  cursor: pointer;
  color: var(--ui-tool-fg);
  height: calc(var(--target-size) - 6px);
  line-height: calc(var(--target-size) - 6px);
  margin: 3px;
  text-align: center;
  width: 6.5rem;
}

.btn-font-variant--active {
  background-color: var(--ui-hint-bg);
  border-radius: var(--border-radius);
  color: var(--ui-hint-fg);
}

.btn-icon {
  background-color: transparent;
  cursor: pointer;
  fill: var(--ui-tool-fg);
  flex: 0 0 auto;
  height: var(--target-size);
  margin: 0;
  outline: none;
  overflow: hidden;
  padding: 3px;
  width: var(--target-size);
}

.btn-icon--active svg {
  background-color: var(--ui-hint-bg);
  border-radius: var(--border-radius);
  fill: var(--ui-hint-fg);
}

.btn-icon--h-menu {
  fill: var(--ui-base-fg);
}

.btn-icon--filter-down,
.btn-icon--filter-next {
  fill: var(--ui-base-fg);
}

.btn-load-more {
  cursor: pointer;
  height: var(--target-size);
  line-height: var(--target-size);
  text-align: center;
  width: 100%;
}

.btn-read-option {
  background-color: var(--ui-tool-bg);
  cursor: pointer;
  color: var(--ui-tool-fg);
  height: calc(var(--target-size) - 6px);
  line-height: calc(var(--target-size) - 6px);
  margin: 3px;
  padding: 0 0.5rem;
}

.btn-read-option--active {
  background-color: var(--ui-hint-bg);
  border-radius: var(--border-radius);
  color: var(--ui-hint-fg);
}

.btn-result {
  cursor: pointer;
  flex: 1 1 auto;
  margin-bottom: 0.5rem;
  text-align: left;
}

.btn-theme-type {
  cursor: pointer;
  color: var(--ui-tool-fg);
  height: calc(var(--target-size) - 6px);
  line-height: calc(var(--target-size) - 6px);
  margin: 3px;
  text-align: center;
  width: 3.5rem;
}

.btn-theme-type--active {
  background-color: var(--ui-hint-bg);
  border-radius: var(--border-radius);
  color: var(--ui-hint-fg);
}

.btn-topic {
  cursor: pointer;
  height: var(--target-size);
  line-height: var(--target-size);
  text-align: center;
  width: 100%;
}

.btn-verse {
  border: 1px solid transparent;
  cursor: pointer;
  flex: 1 1 auto;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  text-align: left;
}

.carousel {
  background-color: var(--ui-tool-bg);
  display: flex;
  flex-flow: row nowrap;
  margin-bottom: 1.0rem;
}

.center {
  text-align: center;
}

.checkbox-container {
  margin: 0;
  padding-bottom: 1.0rem;
}

.colophon {
  margin: 0 2.0rem 0 2.0rem;
}

.container {
  display: flex;
  flex-flow: row nowrap;
  height: 100%;
  overflow: hidden;
}

.content {
  display: flex;
  flex-flow: row wrap;
}

.dialog-btns {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  margin-top: 1.0rem;
}

.dialog-input {
  border-bottom: 1px solid var(--ui-base-fg);
  height: var(--target-size);
  padding: 0 0.5rem;
  width: 100%;
}

.dialog-textarea {
  border: 1px solid var(--ui-base-fg);
  height: 20.0rem;
  margin-top: 1.0rem;
  overflow-y: auto;
  padding: 0.5rem;
  resize: none;
  width: 100%;
}

.empty {
  height: var(--target-size);
  padding-top: 1.0rem;
  text-align: center;
}

.entry {
  display: flex;
  flex: 1 1 auto;
  flex-flow: row nowrap;
  height: var(--target-size);
}

.entry--icon {
  margin-bottom: 0.25rem;
}

.filter {
  display: flex;
  flex-flow: row nowrap;
}

.font-sample {
  border: 1px solid var(--ui-base-fg);
  height: 8.0rem;
  margin-bottom: 1.0rem;
  padding: 0.5rem;
}

.font-sample-verse {
  margin: 0;
}

.font-size-label {
  color: var(--ui-tool-fg);
  height: calc(var(--target-size) - 6px);
  line-height: calc(var(--target-size) - 6px);
  padding: 0;
  text-align: center;
  width: calc(var(--target-size) - 6px);
}

.font-size-label--help {
  color: var(--ui-base-fg);
}

.font--bold {
  font-weight: bold;
}

.gap {
  margin-top: -0.5rem;
}

.hide {
  display: none;
}

.icon-description {
  flex: 1 1 auto;
  align-self: center;
}

.icon-holder {
  background-color: transparent;
  fill: var(--ui-base-fg);
  flex: 0 0 auto;
  height: var(--target-size);
  margin: 0;
  outline: none;
  overflow: hidden;
  padding: 3px;
  width: var(--target-size);
}

.icon-svg {
  height: calc(var(--target-size) - 6px);
  margin: 0;
  padding: 0;
  width: calc(var(--target-size) - 6px);
}

.king {
  margin-bottom: 0.25rem;
  text-align: center;
}

.list--read {
  display: flex;
  flex-direction: column;
}

.list--read-column {
  flex-wrap: wrap;
  height: 100%;
}

.list--read-column .btn-verse {
  margin: 0 0.5rem 0.5rem 0;
  width: 320px;
}

.load {
  background-color: hsl(0, 0%, 82%);
  color: hsl(0, 0%, 5%);
  display: flex;
  flex: 1 1 auto;
  flex-flow: column nowrap;
  overflow: auto;
}

.load-banner {
  align-self: center;
  background-color: transparent;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 0 0.5rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.load-bar {
  background-color: hsl(0, 0%, 62%);
  display: flex;
  flex: 0 0 calc(var(--target-size) + 1px);
  flex-flow: row nowrap;
}

.load-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.5rem;
  text-align: center;
}

.message--bookmark-folder-add {
  border: 1px solid var(--ui-base-fg);
  margin-top: 1.0rem;
  min-height: 2.3rem;
  padding: 0.5rem;
}

.message--bookmark-folder-rename {
  border: 1px solid var(--ui-base-fg);
  margin-top: 1.0rem;
  min-height: 2.3rem;
  padding: 0.5rem;
}

.message--bookmark-import {
  border: 1px solid var(--ui-base-fg);
  margin-top: 1.0rem;
  min-height: 2.3rem;
  padding: 0.5rem;
}

.message--search-lookup {
  border: 1px solid var(--ui-base-fg);
  margin-top: 1.0rem;
  min-height: 2.3rem;
  padding: 0.5rem;
}

.name--font {
  align-self: center;
  background-color: transparent;
  color: var(--ui-tool-fg);
  flex: 1 1 auto;
  text-align: center;
}

.name--theme {
  align-self: center;
  background-color: transparent;
  color: var(--ui-tool-fg);
  flex: 1 1 auto;
  text-align: center;
}

.normal {
  font-variant: normal;
}

.notes {
  font-size: 0.9em;
  font-style: italic;
}

.page {
  display: flex;
  flex: 0 0 100%;
  flex-flow: column nowrap;
  overflow: auto;  /* crucial */
}

.page--hide {
  display: none;
}

.paragraph {
  line-height: 1.0rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

:root {
  box-sizing: border-box;
  --border-radius: 5px;
  --target-size: 45px;
}

.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.5rem;
  position: relative;
}

.scroll--help-read {
  padding-top: 0;
}

.scroll--help-topic {
  padding: 0.5rem;
}

.scroll--notifications {
  display: block;       /* ensure visible block on small screens */
  min-height: 50vh;     /* prevent collapse if content loads slowly */
}

.scroll--setting {
  padding: 0.5rem;
}

.selector--font-size {
  background-color: var(--ui-tool-bg);
  display: flex;
  flex-flow: row nowrap;
  height: var(--target-size);
  justify-content: center;
  margin-bottom: 1.0rem;
}

.selector--font-size.small-caps div.btn-font-size {
  font-variant: small-caps;
}

.selector--font-variant {
  background-color: var(--ui-tool-bg);
  display: flex;
  flex-flow: row nowrap;
  height: var(--target-size);
  justify-content: center;
  margin-bottom: 1.0rem;
}

.selector--read-option {
  background-color: var(--ui-tool-bg);
  padding: 0.5rem;
}

.selector--theme-type {
  background-color: var(--ui-tool-bg);
  display: flex;
  flex-flow: row nowrap;
  height: var(--target-size);
  justify-content: center;
  margin-bottom: 1.0rem;
}

.small-caps {
  font-variant: small-caps;
}

.span-result-text {
  display: block;
  min-height: var(--target-size);
  text-align: left;
}

.superscription {
  margin: 0 2.0rem 0.5rem 2.0rem;
}

.tap-message {
  font-size: 1.1em;
  font-style: oblique;
  font-weight: bold;
}

.tap-toc {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
}

.tap-toc-a {
  flex: 0 0 100%;
  font-weight: normal;
  padding: 0.5rem 0;
  text-align: center;
  text-decoration: none;
}

.tap-toc-iii {
  display: flex;
  flex-flow: row wrap;
}

.tap-toc-iii-a {
  flex: 0 0 20%;
  padding: 0.5rem 0;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
}

.tap-toc-iii-a-bold {
  font-weight: bold;
}

.tap-verse {
  font-weight: bold;
  text-align: center;
}

.tap-verse a {
  text-decoration: none;
}

.theme--amethyst-dark {
  --ui-base-bg: hsl(270,  50%,   9%);
  --ui-base-fg: hsl(  0,   0%,  62%);
  --ui-tool-bg: hsl(270,  50%,  22%);
  --ui-tool-fg: hsl(  0,   0%,  71%);
  --ui-hint-bg: hsl(270,  50%,  69%);
  --ui-hint-fg: hsl(  0,   0%,   3%);
}

.theme--amethyst-light {
  --ui-base-bg: hsl(270,  50%,  91%);
  --ui-base-fg: hsl(  0,   0%,  28%);
  --ui-tool-bg: hsl(270,  50%,  69%);
  --ui-tool-fg: hsl(  0,   0%,   3%);
  --ui-hint-bg: hsl(270,  50%,  39%);
  --ui-hint-fg: hsl(  0,   0%,  91%);
}

.theme--beryl-dark {
  --ui-base-bg: hsl( 50,  80%,   7%);
  --ui-base-fg: hsl(  0,   0%,  65%);
  --ui-tool-bg: hsl( 50,  80%,  20%);
  --ui-tool-fg: hsl(  0,   0%,  93%);
  --ui-hint-bg: hsl( 50,  80%,  39%);
  --ui-hint-fg: hsl(  0,   0%,   4%);
}

.theme--beryl-light {
  --ui-base-bg: hsl( 50,  90%,  90%);
  --ui-base-fg: hsl(  0,   0%,  32%);
  --ui-tool-bg: hsl( 50,  90%,  51%);
  --ui-tool-fg: hsl(  0,   0%,  23%);
  --ui-hint-bg: hsl( 50,  90%,  21%);
  --ui-hint-fg: hsl(  0,   0%,  99%);
}

.theme--chalcedony-dark {
  --ui-base-bg: hsl(240,  10%,  11%);
  --ui-base-fg: hsl(  0,   0%,  65%);
  --ui-tool-bg: hsl(240,  10%,  21%);
  --ui-tool-fg: hsl(  0,   0%,  75%);
  --ui-hint-bg: hsl(240,  10%,  63%);
  --ui-hint-fg: hsl(  0,   0%,   3%);
}

.theme--chalcedony-light {
  --ui-base-bg: hsl(240,  10%,  92%);
  --ui-base-fg: hsl(  0,   0%,  30%);
  --ui-tool-bg: hsl(240,  10%,  77%);
  --ui-tool-fg: hsl(  0,   0%,  19%);
  --ui-hint-bg: hsl(240,  10%,  38%);
  --ui-hint-fg: hsl(  0,   0%, 100%);
}

.theme--emerald-dark {
  --ui-base-bg: hsl(100,  60%,   5%);
  --ui-base-fg: hsl(  0,   0%,  62%);
  --ui-tool-bg: hsl(100,  60%,  12%);
  --ui-tool-fg: hsl(  0,   0%,  72%);
  --ui-hint-bg: hsl(100,  60%,  42%);
  --ui-hint-fg: hsl(  0,   0%,   2%);
}

.theme--emerald-light {
  --ui-base-bg: hsl(100,  60%,  93%);
  --ui-base-fg: hsl(  0,   0%,  32%);
  --ui-tool-bg: hsl(100,  60%,  65%);
  --ui-tool-fg: hsl(  0,   0%,  22%);
  --ui-hint-bg: hsl(100,  60%,  23%);
  --ui-hint-fg: hsl(  0,   0%,  96%);
}

.theme--jasper-dark {
  --ui-base-bg: hsl( 10,  60%,   7%);
  --ui-base-fg: hsl(  0,   0%,  62%);
  --ui-tool-bg: hsl( 10,  60%,  18%);
  --ui-tool-fg: hsl(  0,   0%,  71%);
  --ui-hint-bg: hsl( 10,  60%,  64%);
  --ui-hint-fg: hsl(  0,   0%,   1%);
}

.theme--jasper-light {
  --ui-base-bg: hsl( 10,  90%,  93%);
  --ui-base-fg: hsl(  0,   0%,  28%);
  --ui-tool-bg: hsl( 10,  90%,  79%);
  --ui-tool-fg: hsl(  0,   0%,  19%);
  --ui-hint-bg: hsl( 10,  90%,  30%);
  --ui-hint-fg: hsl(  0,   0%,  91%);
}

.theme--sapphire-dark {
  --ui-base-bg: hsl(240,  40%,   9%);
  --ui-base-fg: hsl(  0,   0%,  62%);
  --ui-tool-bg: hsl(240,  40%,  23%);
  --ui-tool-fg: hsl(  0,   0%,  71%);
  --ui-hint-bg: hsl(240,  40%,  70%);
  --ui-hint-fg: hsl(  0,   0%,   3%);
}

.theme--sapphire-light {
  --ui-base-bg: hsl(240,  50%,  94%);
  --ui-base-fg: hsl(  0,   0%,  30%);
  --ui-tool-bg: hsl(240,  50%,  82%);
  --ui-tool-fg: hsl(  0,   0%,  19%);
  --ui-hint-bg: hsl(240,  50%,  50%);
  --ui-hint-fg: hsl(  0,   0%,  96%);
}

.theme--topaz-dark {
  --ui-base-bg: hsl(195,  40%,   6%);
  --ui-base-fg: hsl(  0,   0%,  62%);
  --ui-tool-bg: hsl(195,  40%,  15%);
  --ui-tool-fg: hsl(  0,   0%,  72%);
  --ui-hint-bg: hsl(195,  40%,  54%);
  --ui-hint-fg: hsl(  0,   0%,   2%);
}

.theme--topaz-light {
  --ui-base-bg: hsl(195,  40%,  91%);
  --ui-base-fg: hsl(  0,   0%,  30%);
  --ui-tool-bg: hsl(195,  40%,  75%);
  --ui-tool-fg: hsl(  0,   0%,  21%);
  --ui-hint-bg: hsl(195,  40%,  28%);
  --ui-hint-fg: hsl(  0,   0%,  94%);
}

.topic {
  padding-top: 0.5rem;
}

.toolbar {
  background-color: var(--ui-tool-bg);
  color: var(--ui-tool-fg);
  display: flex;
  flex: 0 0 var(--target-size);
  flex-flow: row nowrap;
}

.tree {
  margin-left: 20px;
  padding-inline-start: 0;
}

.tree li {
  list-style-type: none;
  margin-left: 10px;
  position: relative;
}

.tree li::after {
  border-left: 1px solid var(--ui-base-fg);
  border-top: 1px solid var(--ui-base-fg);
  content: "";
  height: calc(100% - 5px);
  left: -10px;
  position: absolute;
  top: 25px;
  width: 10px;
}

.tree li::before {
  border-bottom: 1px solid var(--ui-base-fg);
  border-left: 1px solid var(--ui-base-fg);
  content: "";
  height: 37px;
  left: -10px;
  position: absolute;
  top: -11px;
  width: 10px;
}

.tree>li:first-child::after {
  border-radius: 5px 0 0 0;
}

.tree>li:first-child::before {
  display: none;
}

.tree li:last-child::after {
  display: none;
}

.tree li:last-child:before {
  border-radius: 0 0 0 5px;
}

.tree ul {
  margin-left: 10px;
  padding-inline-start: 0;
}

.tree-description {
  align-self: center;
  flex: 0 0 auto;
  padding: 0 0.5rem;
}

.tree-entry {
  display: inline-flex;
  flex: 0 0 auto;
  flex-flow: row nowrap;
  height: var(--target-size);
  margin-bottom: 10px;
}

.tree-entry--task {
  border: double;
  height: calc(var(--target-size) + 6px);
}

.tree-entry--task-aux {
  border: solid 1px;
  height: calc(var(--target-size) + 2px);
  margin: 2px 0 12px 0;
}

.tree-entry--task-menu {
  border: dashed 1px;
  height: calc(var(--target-size) + 2px);
  margin: 2px 0 12px 0;
}

.tree-entry--window {
  border: solid 3px;
  height: calc(var(--target-size) + 6px);
}

.tree-icon {
  background-color: transparent;
  fill: var(--ui-base-fg);
  flex: 0 0 auto;
  height: var(--target-size);
  margin: 0;
  outline: none;
  overflow: hidden;
  padding: 3px;
  width: var(--target-size);
}

.verse-num {
  margin-right: 0.5em;
  font-weight: bolder;
  font-style: oblique;
  color: var(--ui-hint-bg);
}

.verse-text {
  min-height: calc(var(--target-size) - 0.5rem);
}

.verse--bookmark {
  border: solid 1px;
  border-color: var(--ui-base-fg);
  border-radius: var(--border-radius);
  /* Use navbar/toolbar background for bookmarked verses in the read view */
  background-color: var(--ui-tool-bg);
  color: var(--ui-tool-fg);
}

/* Ensure bookmarked verse background stands out but preserves padding */
.list--read .btn-verse.verse--bookmark {
  padding: 0.5rem;
}

/* Note related styles */
.note-container {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: var(--ui-tool-bg);
  border-radius: var(--border-radius);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.note-editor {
  width: 100%;
  min-height: 100px;
  padding: 0.5rem;
  border: 1px solid var(--ui-base-fg);
  border-radius: var(--border-radius);
  background-color: var(--ui-base-bg);
  color: var(--ui-base-fg);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: vertical;
}

.note-display {
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ui-base-fg);
}

.note-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.note-btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--ui-base-fg);
  border-radius: var(--border-radius);
  background-color: var(--ui-tool-bg);
  color: var(--ui-base-fg);
  cursor: pointer;
  font-size: 0.9rem;
}

.note-btn:hover {
  background-color: var(--ui-hint-bg);
  color: var(--ui-hint-fg);
}

.note-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--ui-base-fg);
}

/* Styles for bookmark list rich text notes editor */
.notes-editor {
  margin-top: 0.5rem;
  padding: 0.25rem;
  background-color: var(--ui-tool-bg);
  border-radius: var(--border-radius);
}

.notes-content {
  min-height: 75px; /* expanded editor height requested */
  padding: 0.5rem;
  border: 1px solid var(--ui-base-fg);
  border-radius: var(--border-radius);
  background-color: var(--ui-base-bg);
  color: var(--ui-base-fg);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow: auto;
}

.notes-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

/* Notifications pane card styles */
.notifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.notifications-card {
  background-color: var(--ui-tool-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.notifications-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.2);
}

.notifications-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: rgba(0,0,0,0.2);
}

/* Extra small screens: ensure single-column layout and compact image */
@media screen and (max-width: 360px) {
  .notifications-grid {
    grid-template-columns: 1fr;
    padding: 0.5rem;
    gap: 0.75rem;
  }
  .notifications-card-img {
    height: 140px;
  }
}

.notifications-card-body {
  padding: 1rem;
  color: var(--ui-tool-fg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notifications-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.notifications-card-title a {
  color: var(--ui-hint-fg);
  text-decoration: none;
}

.notifications-card-title a:hover {
  text-decoration: underline;
}

.notifications-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ui-tool-fg);
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notifications-card-excerpt p {
  margin: 0;
}

/* badge on bell */
.btn-icon--bell { 
  position: relative; 
  overflow: visible; /* allow badge to overflow the button bounds */
}
.btn-icon--bell .btn-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  text-align: center;
  border-radius: 10px;
  background: var(--ui-tool-accent, #c0392b);
  color: #fff; /* always white */
  padding: 0 5px;
  position: absolute;
  top: -3px;
  right: -6px;
  /* make sure badge sits above everything so numbers are always visible */
  z-index: 2147483647;
  box-sizing: border-box;
  pointer-events: none;
}


/* notifications grid controls */
.notifications-controls { margin: 12px 8px; text-align: center; }
.notifications-load-more {
  background: var(--ui-tool-bg);
  color: var(--ui-tool-fg);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius: 6px;
}

/* Book Shelf styles */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 16px;
}

.library-card {
  background: var(--ui-tool-bg);
  color: var(--ui-tool-fg);
  padding: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.library-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.library-card:active {
  transform: translateY(0);
}

.library-name {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.library-description {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* Search form for Bible versions */
.search-container {
  padding: 16px;
  background: var(--ui-pane-bg);
  border-bottom: 1px solid var(--ui-border-color, rgba(255,255,255,0.1));
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--ui-border-color, rgba(255,255,255,0.1));
  border-radius: 6px;
  background: var(--ui-tool-bg);
  color: var(--ui-tool-fg);
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: var(--ui-border-highlight, #007acc);
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.search-input::placeholder {
  color: var(--ui-tool-fg);
  opacity: 0.6;
}

/* Resources styles */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px;
}

.resource-card {
  background: var(--ui-tool-bg);
  color: var(--ui-tool-fg);
  padding: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.resource-card:active {
  transform: translateY(0);
}

.resource-name {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.resource-description {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* Devotional Guide styles */
.devotional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px;
}

.devotional-card {
  background: var(--ui-tool-bg);
  color: var(--ui-tool-fg);
  padding: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.devotional-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.devotional-card:active {
  transform: translateY(0);
}

.devotional-name {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.devotional-description {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* modal for full post */
.notifications-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483646;
}
.notifications-modal-overlay.show { display: flex; }
.notifications-modal {
  background: var(--ui-bg, #111);
  color: var(--ui-fg, #fff);
  width: 90%;
  max-width: 900px;
  max-height: 86vh;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.notifications-modal-header { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid rgba(255,255,255,0.04); }
.notifications-modal-title { margin:0; font-size:1.1rem; }
.notifications-modal-close { margin-left:auto; background:transparent; border:0; color:var(--ui-fg); font-size:18px; cursor:pointer; }
.notifications-modal-body { padding:16px; line-height:1.6; }
.notifications-modal-body p { margin-bottom:1.6em; }

.loading {
  padding: 1rem;
  text-align: center;
}

/* Floating Action Buttons for TTS and Audio */


@media screen and (min-width: 640px) {
  .page {
    flex: 0 0 320px;
  }

  .page--read {
    border-right: solid 1px var(--ui-base-fg);
    flex: 0 0 calc(100% - 320px);
  }

  .btn-icon--back {
    display: none;
  }
}

@media screen and (max-width: 959px) {
  .btn-icon--column-mode {
    display: none;
  }
}

@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 0;
  }
}

/* Floating Action Buttons for TTS and Audio */
.fab-tts,
.fab-audio {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background-color: var(--ui-hint-bg);
  color: var(--ui-hint-fg);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease, opacity 0.3s ease;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.fab-tts--show,
.fab-audio--show {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.fab-audio {
  bottom: 150px; /* Position audio FAB above TTS FAB */
}

.fab-tts:hover,
.fab-audio:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fab-tts:active,
.fab-audio:active {
  transform: scale(0.95);
}

.fab-tts-icon,
.fab-audio-icon {
  font-size: 18px;
  font-family: monospace;
  font-weight: bold;
}


/* Media queries for mobile responsiveness */
@media screen and (max-width: 640px) {
  .fab-tts,
  .fab-audio {
    bottom: 70px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
  
  .fab-audio {
    bottom: 130px;
  }
}
