mjx-container {
  font-size: 1.1em; /* Adjust math size relative to text */
}

/* Reset default margin/padding */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif, verdana; 
    background: #f9f9f9;
    color: #333;
    padding-top: 60px; /* Prevent nav from overlapping content */
}

/* Navbar styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: #0565ff; /* Custom color */
    font-family: sans-serif, verdana;
    display: flex;
    justify-content: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;

}

nav a {
    color: white;
    padding: 17px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    font-size: 1.2rem;
}

nav a:hover {
    background: #023e8a;
}

/* Header */
header {
    text-align: left;
    background: #333;
    color: white;
    padding: 1rem;
    width: 100%;
}


/* Main container */
.container { 
    flex: 1 0 auto;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.layout {
  display: flex;
  align-items: flex-start; /* Align top edges */
  gap: 20px; /* Space between sidebar and container */
  max-width: 1200px;
  margin: 20px auto;
}

/* Footer */
footer {
  flex-shrink: 0; /* don’t shrink footer */
  text-align: center;
  padding: 1em;
  background: #333;
  color: white;
}

.sidebar {
  position: sticky;
  left: 0;
  width: 220px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 500; /* Make sure it's above content */
  color: #333; /* Ensure text is visible */
}


.sidebar ul {
  margin-top: 0; /* remove extra gap above the list */
  padding-left: 20px; /* optional: keep indentation */
}


.post-nav {
  max-width: 600px;        /* optional max width to control container size */
  margin: 0 auto;          /* center the container horizontally */
  display: flex;           /* enable flexbox */
  justify-content: space-between; /* push items to edges */
  padding: 0 10px;         /* optional horizontal padding */
}

ul {
  text-align: left; /* Aligns list to the left inside container */
  display: inline-block; /* Keeps width tight around list items */
}

p {
  line-height: 1.5;
}