body {
      background: #181921;
      color: #ececf1;
      font-family: 'Georgia', 'Times New Roman', Times, serif;
      line-height: 1.62;
      margin: 0;
      padding: 2em 1em 4em 1em;
    }
    header {
      background: #14151a;
      padding: 2em 1em 1em 1em;
      text-align: center;
      border-bottom: 1px solid #30304a;
    }
    h1 {
      font-size: 2.15em;
      color: #c3fffd;
      margin: 0 0 0.2em 0;
      font-weight: bold;
      letter-spacing: .5px;
    }
    h2, h3, h4 {
      color: #5fd4ee;
      margin-top: 2.2em;
      margin-bottom: .7em;
      font-weight: 700;
      letter-spacing: .3px;
    }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }
    h4 { font-size: 1em; }
    .abstract, .section, .toc, .appendix, .references, .footnotes {
      max-width: 820px;
      margin: 1.2em auto;
      padding: 0 1.2em;
    }
    .abstract {
      background: #21232b;
      border-left: 5px solid #4cd3e3;
      padding: 1.2em 1.2em 1.2em 2em;
      font-size: 1.06em;
      color: #dbfcff;
      margin-top: 1.5em;
      border-radius: 0 12px 12px 0;
    }
    nav.toc {
      background: #1e2027;
      padding: 1.1em 1.5em;
      border-radius: 10px;
      box-shadow: 0 1px 7px #0007;
      margin-bottom: 2em;
    }
    nav.toc ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    nav.toc ul li {
      margin: .65em 0;
      font-size: 1.05em;
    }
    nav.toc a {
      color: #6fefff;
      text-decoration: none;
      transition: color .2s;
    }
    nav.toc a:hover {
      color: #ffde5c;
      text-decoration: underline;
    }
    a {
      color: #7bf6c6;
    }
    blockquote {
      background: #23243a;
      border-left: 5px solid #ffec70;
      color: #d6d8ed;
      margin: 1.5em 0;
      padding: 1.1em 1.4em 1.1em 1.9em;
      border-radius: 0 10px 10px 0;
    }
    .section {
  max-width: 960px;  /* keeps content readable on wide screens */
  margin: 0 auto;
  padding: 1.5em 1em;
  box-sizing: border-box;
}

table {
  border-collapse: collapse;
  margin: 2em auto;
  background: #252630;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 10px #0003;
  width: 100%;            /* ensures it fills container */
  max-width: 100vw;       /* never wider than viewport */
  table-layout: fixed;     /* prevents columns from expanding too wide */
  word-break: break-word;  /* wrap long text in cells */
}

th, td {
  padding: 0.75em 0.5em;
  text-align: center;
  color: #fff;
  font-size: 1em;
}

th {
  background: #353547;
  font-weight: 700;
}

td {
  background: #2c2d38;
}

@media (max-width: 600px) {
  .section {
    padding: 1em 0.3em;
  }
  table, th, td {
    font-size: 0.95em;
  }
  table {
    font-size: 0.95em;
  }
  th, td {
    padding: 0.5em 0.2em;
  }
}
    th, td {
      border: 1px solid #384267;
      padding: 9px 13px;
      font-size: 1em;
    }
    th {
      background: #213043;
      color: #fff;
      font-weight: 700;
    }
    tr:nth-child(even) td {
      background: #22232b;
    }
		  .footnote-ref {
      color: #66e3ff;
      cursor: pointer;
      text-decoration: underline dotted;
      position: relative;
    }
    .references, .footnotes {
      font-size: .96em;
      color: #b3d5f7;
      background: #21232a;
      border-radius: 7px;
      padding: 1.1em 1.2em;
      margin-top: 2.5em;
    }
    .appendix {
      background: #191b22;
      border-radius: 10px;
      box-shadow: 0 1px 8px #0003;
      padding: 1.2em 1.5em;
      color: #ebfffd;
      margin-top: 2em;
    }
  /* Section blocks: */
.section, .toc, .abstract, .references, .appendix, .footnotes {
  max-width: 820px;
  margin: 1.2em auto;
  padding: 0 1.2em;
}

@media (max-width: 900px) {
  .section, .toc, .abstract, .references, .appendix, .footnotes {
    max-width: 99vw;
    padding: 0 0.5em;
  }
}

      header { padding: 1.1em .2em .7em .2em; }
      h1 { font-size: 1.22em; }
			
			  .footnote-text {
  display: none;
  position: absolute;
  left: 50%;
  top: 1.5em;
  transform: translateX(-50%);
  background: #2a2a2f;
  color: #fff;
  border: 1px solid #555;
  border-radius: 7px;
  max-width: 350px;
  z-index: 10;
  font-size: .96em;
  padding: .7em 1em;
  box-shadow: 0 1px 12px #0007;
  pointer-events: auto;
}
.footnote-ref {
  position: relative;
}
    .footnote-ref:hover .footnote-text { display: block; }
    code, pre {
      background: #191a1f;
      color: #b7ffb2;
      padding: 2px 5px;
      border-radius: 4px;
      font-size: .95em;
    }
    /* Toggle Button Styling */
.toggle-button {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background: black;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 4px 4px 8px #bebebe, -4px -4px 8px #ffffff;
    transition: background-color 0.3s;
		z-index: 1000;
		width: 90%;
}

.toggle-button:hover {
    background-color: black;
}

.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
		pointer-events: none; /* This prevents any clicks on it */
		display: none;
}


/* Neumorphic Navigation Container */
.navigation {
    position: fixed;
    top: 40px; /* Adjust to stay below the toggle button */
    left: 10px;
    background-color: #e0e0e0;
    padding: 5px;
    border-radius: 15px;
    box-shadow: 4px 4px 8px #bebebe, -4px -4px 8px #ffffff;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 1000;
		height: 50%;
		overflow-y: auto; /* Enable vertical scrolling */
		
		
}
				
        .neumorphic-tab {
					
            display: inline-block;
            margin: 2px 2px;
            padding: 3px 3px;
            border-radius: 25px;
            background: #e0e0e0;
            box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff;
            text-decoration: none;
            color: #333;
            font-weight: bold;
            font-size: clamp(16px, 1.2vw, 22px);
						text-align: center;
        }
        .neumorphic-tab:hover {
            box-shadow: inset 8px 8px 16px #bebebe, inset -8px -8px 16px #ffffff;
        }
        .neumorphic-tab.active {
            background: #d1d1d1;
        }
				
				.submenu {
    padding-left: 20px; /* Indent submenu items */
    background-color: #f0f0f0;
    border-left: 2px solid #ccc;
    margin-top: 5px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

.submenu a {
    font-size: 0.9rem;
    padding: 2px 10px;
    border-radius: 10px;
		margin-bottom: 7px;
		margin-top: 5px;
}

.submenu.hidden {
    display: none;
}
				
				/* Scroll Buttons Container */
.scroll-buttons {
    position: fixed;
    right: 0;
    top: 75%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
		z-index: 9999;
}

.scroll-buttons button {
    all: unset;
    width: 1rem 
    height: auto;
    font-size: .7rem;
    background: #e0e0e0;
    color: #333;
    padding: 0;
    padding-top: 13px;
		padding-bottom: 10px;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: upright;
    box-shadow: 2px 2px 2px black, -2px -2px 5px black;
    transition: box-shadow 0.3s ease, background-color 0.3s, transform 0.2s;
		z-index: 1000;
}

/* Hover effect for buttons */
.scroll-buttons button:hover {
    background-color: #ccc;
    box-shadow: inset 2px 2px 5px #bebebe, inset -2px -2px 5px #ffffff;
    transform: scale(1.05);
}

/* Footer Styling */
.footer {
  margin-top: 3rem;
  padding: 1rem;
  background: #0f0f0f;
  border-top: 1px solid #333;
  color: #ccc;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(255, 102, 153, 0.2);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #ff66cc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, text-shadow 0.3s;
}

.footer a:hover {
  color: #fff;
  text-shadow: 0 0 5px #ff66cc, 0 0 10px #ff66cc;
}

a {
	color: #70f6f8;
}
