/* Force remove bullets from TOC list even if other CSS applies */
.toc-list.no-bullets ul, .toc-list.no-bullets li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
/* Remove bullets from markdown TOC list in Contents section */
#contents ul, #contents ol, .toc-list, .toc-list.no-bullets {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
#contents li {
    margin-bottom: 0.2em;
}
/* Remove bullets from custom TOC list */
.toc-list.no-bullets {
    list-style: none;
    margin: 1.5em 0;
    padding: 0;
}
.toc-list.no-bullets li {
    margin-bottom: 0.2em;
}
/* 
 * Custom TOC styles
 */
.toc-list {
    line-height: 1.7;
    margin: 1.5em 0;
    padding: 0;
}
.toc-list a {
    display: inline-block;
    text-decoration: underline;
    color: #0066cc;
    margin-bottom: 0.2em;
}
/* 
 * General IDM style
 */

h4 {
    font-style: italic;
}

/* 
 * Frontmatter styles
 */

.frontmatter {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#book-cover {
    margin-top: 25px;
}

#book-loc-data {
    font-size: x-small;
    background-color: lightgray;
    padding: 5px 15px;
    margin: 10px 0;
}

/* 
 * Table styles
 */

.htmltable-left-align {
    text-align: left;
}

.htmltable-right-align {
    text-align: right;
}

.htmltable-header {
    height: 50px;
    vertical-align: bottom;
    font-weight: bold;
    text-align: left;
}

.table-half-container {
    width: 50%;
    text-align: center; /* Center the table within the container */
    margin: auto;
    position: relative; /* Ensure the caption is positioned relative to the container */
}

.table-half-container > .figure > .quarto-float-caption-top {
    width: 200%;
    text-align: center; /* Center the caption text */
    position: absolute; /* Position the caption absolutely within the container */
    left: -50%; /* Move the caption to the left to span 200% */
    top: -2.5em; /* Adjust the top position to ensure it does not overlap with the table */
}

.table-half-container table {
    margin-top: 2.5em; /* Add margin to the top of the table to ensure it does not overlap with the caption */
}

/* 
 * Catalog styles
 */

.term {
    font-style: italic;
}

.term::after {
    content: ":";
    margin-right: 0.5em;
  }

.term-definition {
    display: flex;
    margin-bottom: 0.5em;
}

.definition {
    flex: 1;
}

.small-font {
  font-size: 0.8em; /* Adjust the size as needed, 0.8em = 80% of normal size */
}

.underdot {
    text-emphasis-style: dot;
    text-emphasis-position: under left;
    -webkit-text-emphasis-style: dot;
    -webkit-text-emphasis-position: under;
}

.underdot-space {
    text-emphasis-style: dot;
    text-emphasis-position: under left;
    text-emphasis-color: black;
    -webkit-text-emphasis-style: dot;
    -webkit-text-emphasis-position: under;
    color: white;
}

.overlined {
  text-decoration: overline;
}

/* Language specific */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Coptic&display=swap');

.coptic {
  font-family: 'Noto Sans Coptic', serif;
}