  :root {
    --bg: #000;
    --text: #eaeaea;
    --link: #79aaff;
    --border: #2a2a2a;
    --muted: #999999;
    --max-width: 70ch;
  }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg); 
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
}





#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
  margin-top: 0.6em;     /* space above the header */
  margin-bottom: 0.2em;  /* space below header — THIS controls distance to body text */
}


#content .outline-4 {
  border: 1px solid;
  padding: 12px 15px;
  margin: 1em 0;
  color: #000;
  border-radius: 8px;
  background: #D3D7CF;
  line-height: 1;
  font-size: 12px;
}

#content a {
  color: #002B69;
  text-decoration: underline;
}

#content .outline-4 > h4 {
    background: #eef3ff;
    color: #C00;
    border-bottom: 1px solid #000;
    padding: 6px 10px;
    margin: -12px -15px 12px -15px; /* heading touches the box edges */
    #border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 12px;
}




.content {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

.title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin: 1rem 0;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
  outline: none;
}

blockquote {
  border-left: 3px solid var(--border);
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--muted);
}

pre, code {
  font-family: ui-monospace, monospace;
  background: var(--border);
  color: inherit;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  padding: 0.8rem;
  overflow-x: auto;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 0.5rem;
  text-align: left;
}

.csl-bib-body {
  margin-top: 2rem;
}
.csl-entry {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.csl-left-margin {
  float: left;
  width: 2em;
  color: var(--muted);
}
.csl-right-inline {
  margin-left: 2.5em;
}

#postamble {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
#postamble a {
  color: var(--muted);
  text-decoration: none;
}
#postamble a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }
  .title {
    font-size: 1.4rem;
  }
  .csl-left-margin {
    float: none;
    width: auto;
    display: inline;
    margin-right: 0.4em;
  }
  .csl-right-inline {
    margin-left: 0;
    display: block;
  }
}







/* minimalist navigation bar */
.navbar {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 600;
  font-size: 1rem;
  color: #FFDD00;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  
}

.nav-menu a {
  color: #D90085;
  text-decoration: underline;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--link);
}

@media (max-width: 600px) {
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.3rem;
  }
  .nav-container {
    flex-direction: column;
    align-items: center;
  }
}







/* ---------------------------------------------- */
/* 1. Base scaling for TOC                        */
/* ---------------------------------------------- */
#content #table-of-contents {
  font-size: 0.6rem !important;
  line-height: 1.4 !important;
}


#content #table-of-contents li {
    margin-bottom: 0.8rem !important;
}

/* ---------------------------------------------- */
/* 2. Make ALL descendants inherit this scale     */
/* ---------------------------------------------- */
#content #table-of-contents *,
#content #table-of-contents *:before,
#content #table-of-contents *:after {
  font-size: inherit !important;
  line-height: inherit !important;
}


/* ---------------------------------------------- */
/* 3. Optional: styling to make a “table layout”  */
/* ---------------------------------------------- */
#content #table-of-contents ul {
  list-style: none;
  padding-left: 0 !important;
  margin-left: 0 !important;
}



#content #table-of-contents > #text-table-of-contents > ul > li {
  margin-bottom: 1.1rem !important;
  padding: 0.7rem 1rem !important;
  background: #fafafa;

  display: grid;
  grid-template-columns: 75px 1fr; /* Year, content */
  gap: 0.7rem;
}



#content #table-of-contents > #text-table-of-contents > ul > li > a {
  font-weight: bold;
  font-size: 1.45rem; /* scaled relative to parent */
  text-decoration: none;
  color: #333;
}

#content #table-of-contents ul ul > li > a {
  font-size: 1.15rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
}

#content #table-of-contents ul ul ul > li > a {
  font-size: 1rem;
  border-left: 3px solid #ccc;
  padding-left: 0.6rem;
  display: block;
  color: #333;
}

#content #table-of-contents ul ul ul > li > a:hover {
  border-left-color: #007acc;
  background: #f0f8ff;
}

#content #table-of-contents ul ul ul ul > li > a {
  font-size: 0.95rem;
  padding-left: 1.2rem;
  color: #666;
}


.site-footer .badge-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0px 8px;   /* vertical horizontal */
  margin-top: 20px;

}


.site-footer .badge {
  display: block;
  height: 31px;
  width: auto;
  line-height: 0;
}
