/*GLOBAL */
html {
  scroll-behavior: smooth;
}

ul li {
  list-style-type: none;
}
a, a:link, a:visited {
  text-decoration: none;
  color: rgb(230, 232, 180);
}

body:before {
  content: "";
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  background: url(../images/jackie_hird_ship.jpg) no-repeat center right;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/* FONTS */

.verse {
  font-style: italic;
  text-indent: 2%;
}

/* BUTTONS */
.button-link {
  display: inline-block;
  padding: 4px 10px;
  margin-left: 6px;
  font-size: 14px;
  font-family: inherit;
  color: black;
  background-color: #e0e0e0;
  border: 1px solid #999;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}

.button-link:hover {
  background-color: #d0d0d0;
}

/* LAYOUT */

.container {
  max-width: 1200px;  
  margin: 0 auto;  
  padding: 24px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
}

.leftnav {
  grid-column: 1;
  position: sticky;
  top: 1rem;
  align-self: start;
  width: auto;
}

.article {
  grid-column: 2;
  min-width: 0;    
  max-width: 75ch;  
  margin: 0;     
  color: white;
  background-color: rgba(134, 112, 112, .5);
  text-shadow: 1px 1px black;
  padding: 2rem;
  box-shadow: 5px 0 5px -5px rgba(71,71,71,.8), -5px 0 5px -5px rgba(71,71,71,.8);
  font-size: 20px;
}

.leftnav ul li { width: auto; }
.leftnav ul li img { width: 50px; display: block; }
.return-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  margin-top: 10px;
  color: rgb(230, 232, 180);
  background-color: rgba(45, 45, 45, 0.4);
  border: 1px solid rgba(230, 232, 180, 0.55);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  text-shadow: 1px 1px black;
}

.return-to-top:hover,
.return-to-top:focus {
  background-color: rgba(45, 45, 45, 0.7);
}

@media (max-width: 900px) {
  .container {
    display: block;
  }

  .leftnav ul {
    display: flex;            /* row instead of column */
    justify-content: center;  /* center across the screen */
    gap: 12px;                /* space between items */
  }

  .leftnav ul li {
    margin: 0;                /* remove vertical margin */
  }

  .return-to-top {
    margin-top: 0;
  }

  .leftnav {
    position: static;         /* we already killed sticky on small screens */
    width: 100%;              /* span across the top */
    order: -1;                /* optional: force nav above article */
  }

  img.page {display: none;}
}

.page_title {
  display: flex;
  clear: both;
}
img.page {
  width: 100px;
}

/* COLLAPSIBLE SECTIONS per w3schools.com/howto/howto_js_collapsible.asp*/

.collapsible {
  background-color: #777;
  cursor: pointer;
  padding: 18px;
  width: 96%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 25px;
  margin-bottom: 10px;
}
.active, .collapsible:hover {
  background-color: #555;
}
.part-heading,
.part-heading:hover,
.part-heading.active {
  background-color: rgba(45, 45, 45, 0.4);
  font-size: 28px;
  font-weight: normal;
}
.part-content {
  display: none;
  margin-left: 24px;
  padding-left: 18px;
  border-left: 4px solid rgba(45, 45, 45, 0.4);
  width: calc(96% - 46px);
}
.part-content.expanded {
  display: block;
  max-height: none;
  overflow: visible;
  transition: all 1s ease-in-out;
}
.chapter-heading,
.chapter-heading:hover,
.chapter-heading.active {
  background-color: rgba(45, 45, 45, 0.4);
  font-weight: normal;
}
.content-title {
  background-color: rgba(45, 45, 45, 0.4);
  box-sizing: border-box;
  padding: 8px 18px;
  margin-bottom: 0;
  width: 100%;
}
.content-title:hover,
.content-title.active {
  background-color: rgba(45, 45, 45, 0.4);
}
.content {
  background-color: rgba(45, 45, 45, 0.4);
  box-sizing: border-box;
  padding: 0 18px;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}
.content.expanded {
  max-height: none;
  overflow: visible;
  padding-top: 8px;
  padding-bottom: 8px;
}
.expanded {
  max-height: 2000px;
  transition: all 1s ease-in-out;
}
.chapter-content {
  display: none;
  margin-left: 32px;
  padding-left: 18px;
  border-left: 4px solid #777;
  width: calc(96% - 54px);
}
.chapter-content.expanded {
  display: block;
  max-height: none;
  overflow: visible;
  transition: all 1s ease-in-out;
}
/* Format dates in collapsible items*/
.littledate {
  font-size: 10px;
  padding-right: 10px;
}

/*Keep formatting in content per ChatGPT*/
.whitespace {
  white-space: pre-wrap !important;
}

/*FORMS*/
label {
  display: inline-block;
  width: 150px;
  text-align: right;
  padding-right: 10px;
}
select {
  margin-left: -5px !important;
}
input {
  margin: 5px 0px;
}
.text-input {
  width: 300px;
}
textarea {
  max-width: 100%;
}
.submit {
  width: 50%;
  margin: auto;
  border-style: outset;
  border-color: gray;
  box-shadow: 3px 3px 3px;
}
.submit:hover {
  border-color: rgb(255, 255, 255);
}


/* TABLES */
table {
  background-color: rgb(134, 112, 112);
  border-collapse: collapse;
}
tr {
  border-bottom: 1px solid rgb(80, 57, 57);
  margin-top: 10px;
}
tr.multi {
  margin-top: 10px;
  border: none;
}
th {
  padding: 10px;
  font-family: arial;
  font-size: 13px;
  font-weight: bold;
}
td {
  padding: 10px;
  vertical-align: top;
  font-family: arial;
  font-size: 12px;
}

/* Conventions */
.pop {
  color: rgb(155, 219, 239);
  font-weight: bold;
}

/* Center divs */
.center-output {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

/* highlight the found author by ChatGPT 1/12/2026 */
.author-hit { background: #5e850a; padding: 2px 4px; border-radius: 4px; }
#authorJump.no-match { outline: 2px solid #cc0000; }
.author-jump-bar{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px;
  background: rgba(134, 112, 112, .90); /* match your .article tone */
  backdrop-filter: blur(2px);
  box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.5)
}

/* Style tables from the TinyMCE WYSIWYG editor */
.mce-content-body table { border-collapse: collapse; width: 100%; }
.mce-content-body th, .mce-content-body td { border: 1px solid #ccc; padding: 8px; }


