/* Bible — plain printed-page aesthetic. White paper, black ink. */

@font-face {
  font-family: 'Noto Sans Ethiopic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/noto-sans-ethiopic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Ethiopic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/noto-sans-ethiopic-700.woff2') format('woff2');
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
}

body {
  font-family: 'Noto Sans Ethiopic', 'Nyala', 'Abyssinica SIL', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: #000000; text-decoration: none; border-bottom: 1px solid #cccccc; }
a:hover { border-bottom-color: #000000; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

/* ------- Language toggle (top-right corner of every non-landing page) ------- */
.lang-toggle {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem 0;
  text-align: right;
  font-size: 0.95rem;
}
.lang-toggle a {
  color: #666666;
  border-bottom: 1px solid #cccccc;
}
.lang-toggle a:hover {
  color: #000000;
  border-bottom-color: #000000;
}

/* ------- Landing page ------- */
.page-landing main.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}
.page-landing .landing-title {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0;
  color: #000000;
}
.page-landing .card {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1.75rem;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #cccccc;
}
.page-landing .card:hover {
  background: transparent;
  color: #000000;
  border-bottom-color: #000000;
}

/* ------- Breadcrumb ------- */
.crumb {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.95rem;
  color: #666666;
}
.crumb a { color: #666666; border-bottom: none; }
.crumb a:hover { color: #000000; text-decoration: underline; }
.crumb .sep { margin: 0 0.4rem; color: #999999; }
.crumb .here { color: #000000; }

/* ------- Lists (book list, chapter list): zebra rows ------- */
.book-list, .chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.book-list li, .chapter-list li {
  margin: 0;
  position: relative;
  scroll-margin-top: 1.25rem;
}
.book-list li:nth-child(odd), .chapter-list li:nth-child(odd) {
  background: #f7f7f5;
}
.book-list a, .chapter-list a {
  display: block;
  padding: 0.9rem 3rem 0.9rem 0.75rem;
  border-bottom: none;
  font-size: 1.1rem;
  color: #000000;
}
.book-list a:hover, .chapter-list a:hover { background: #ececea; }

/* ------- Chapter page ------- */
.verses { margin: 1rem 0 2rem; }

.verse {
  position: relative;
  padding: 0.5rem 2.75rem 0.5rem 0.75rem;
  margin: 0;
  scroll-margin-top: 1.25rem;
}
.verse:nth-child(odd) { background: #f7f7f5; }

.verse-num {
  display: inline-block;
  min-width: 1.5em;
  margin-right: 0.35em;
  font-size: 0.78em;
  color: #777777;
  font-weight: 700;
  vertical-align: 0.35em;
}

/* ------- Highlighted row/verse (target of #anchor) ------- */
.verse.is-highlighted,
.verse.is-highlighted:nth-child(odd),
.row.is-highlighted,
.row.is-highlighted:nth-child(odd) {
  background: #fff3a6;
  color: #000000;
}

/* ------- Share button (used on every shareable row) ------- */
.share-action {
  background: transparent;
  border: none;
  padding: 0.35rem;
  margin: 0;
  cursor: pointer;
  color: #888888;
  line-height: 0;
  position: absolute;
  z-index: 1;
}
.share-action:hover { color: #000000; }
.share-action:focus { outline: 1px solid #000000; outline-offset: 1px; }

.verse > .share-action {
  top: 0.4rem;
  right: 0.35rem;
}
.book-list > li > .share-action,
.chapter-list > li > .share-action {
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
}

/* ------- Chapter nav ------- */
.chap-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eeeeee;
  font-size: 1.75rem;
}
.chap-nav a, .chap-nav .placeholder {
  display: inline-block;
  min-width: 2.5rem;
  padding: 0.25rem 0.75rem;
  text-align: center;
  border-bottom: none;
  color: #000000;
}
.chap-nav a:hover { color: #666666; }

/* ------- Popover (icon-only) ------- */
.popover {
  position: absolute;
  z-index: 100;
  background: #ffffff;
  border: 1px solid #000000;
  padding: 0.25rem;
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
}
.popover[hidden] { display: none; }
.po-action {
  background: transparent;
  border: none;
  padding: 0.5rem;
  font: inherit;
  cursor: pointer;
  color: #000000;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.po-action:hover, .po-action:focus { background: #f0f0f0; outline: none; }
