/* Mary Our Help — Holy Bible
   Fonts: Cinzel (headings/nav) + EB Garamond (body) + DejaVu Serif (verse text)
   Theme: black header, white body, no external dependencies for verse display
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

@font-face {
  font-family: 'dejavuserif';
  src: url('fonts/dejavuserif.eot');
  src: url('fonts/dejavuserif.eot?#iefix') format('embedded-opentype'),
       url('fonts/dejavuserif.woff') format('woff'),
       url('fonts/dejavuserif.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #ffffff; }
body {
  font-family: 'dejavuserif', 'DejaVu Serif', Georgia, serif;
  font-size: 20px;
  line-height: 1.85;
  color: #111111;
  background: #ffffff;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 60px;
}
a { color: #111111; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Branded header injected via CSS pseudo-element ── */
body::before {
  content: 'MARY OUR HELP';
  display: block;
  background: #0E7490;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Chapter navigation (tnav) ── */
ul.tnav {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid #cccccc;
  flex-wrap: wrap;
  align-items: center;
  background: #ffffff;
  position: sticky;
  top: 46px;
  z-index: 99;
}
ul.tnav li { list-style: none; }
ul.tnav li:first-child a {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555555;
  padding: 8px 14px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  transition: background .15s;
}
ul.tnav li:first-child a:hover { background: #f5f5f5; text-decoration: none; }
ul.tnav li:nth-child(2) a,
ul.tnav li:nth-child(4) a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 14px;
  background: #0891B2;
  border: 1px solid #0891B2;
  border-top: 1.5px solid #06B6D4;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  transition: opacity .15s;
}
ul.tnav li:nth-child(2) a:hover,
ul.tnav li:nth-child(4) a:hover { background: #0E7490; border-color: #0E7490; text-decoration: none; }
ul.tnav li:nth-child(3) a {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #111111;
  padding: 8px 12px;
}

/* ── Bible content ── */
.main {
  padding: 20px 20px 0;
}

/* Book title */
.mt {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555555;
  text-align: center;
  padding: 8px 0 4px;
  display: block;
}

/* Chapter number */
.chapterlabel {
  font-family: 'Cinzel', serif;
  font-size: 56px;
  font-weight: 700;
  color: #0E7490;
  text-align: center;
  padding: 12px 0 8px;
  line-height: 1;
  display: block;
}

/* Section headings */
.s {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555555;
  text-align: center;
  padding: 18px 0 6px;
  display: block;
}
.s2 {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888888;
  text-align: center;
  padding: 12px 0 4px;
  display: block;
}

/* Cross-reference line */
.r {
  font-size: 14px;
  color: #999999;
  text-align: center;
  font-style: italic;
  padding-bottom: 8px;
  display: block;
}

/* Verse paragraphs */
.m, .p { display: block; margin-bottom: 10px; text-indent: 1.5em; }
.pmo, .pm, .mi { display: block; margin-bottom: 10px; text-indent: 0; }
.q1 { display: block; margin-bottom: 6px; padding-left: 2em; }
.q2 { display: block; margin-bottom: 6px; padding-left: 3.5em; }
.b { display: block; height: 10px; }

/* Verse numbers */
.verse {
  color: #aaaaaa;
  font-size: 13px;
  vertical-align: super;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  margin-right: 2px;
  line-height: 0;
}

/* Footnotes */
.notemark {
  color: #aaaaaa;
  font-size: 13px;
  vertical-align: super;
  line-height: 0;
}
.popup { display: none; }

/* Footnote list at bottom */
.footnotes, .notes {
  border-top: 1px solid #cccccc;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 16px;
  color: #555555;
}

/* Chapter list page */
body.chlist {
  padding: 20px;
}
body.chlist h1 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 20px 0 16px;
  border-bottom: 1px solid #cccccc;
  margin-bottom: 16px;
}
body.chlist h1 a { color: #0E7490; }
body.chlist ul.tnav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0;
  border: none;
  position: static;
  margin-bottom: 8px;
}
body.chlist ul.tnav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  background: #0891B2;
  border: 1px solid #0891B2;
  border-top: 1.5px solid #06B6D4;
  box-shadow: 0 3px 10px rgba(0,0,0,.25), inset 0 1px 0 #444;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .15s;
  text-decoration: none;
}
body.chlist ul.tnav li a:hover { background: #0E7490; border-color: #0E7490; }
