/* Base styling */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  flex: 0 0 300px;
  padding: 2rem;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
}

.sidebar h1, .sidebar h2, .sidebar h3 {
  margin: 0;
  font-size: 1rem;
}

.sidebar p, .sidebar a {
  font-size: 0.9rem;
  margin: 0.25rem 0;
  word-break: break-word;
}

.sidebar ul {
  margin-top: 1rem;
  padding-left: 1rem;
}

/* Main content */
.main {
  flex: 1;
  padding: 2rem;
}

.post-link {
  margin-bottom: 1.5rem;
}

.post-link a {
  font-size: 1.2rem;
  color: #0066cc;
  text-decoration: none;
}

.post-link a:hover {
  text-decoration: underline;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
}

.sidebar ul {
  margin: 0;
  padding-left: 1rem;
  list-style-type: disc;
}

.sidebar li {
  margin: 0;
  padding: 0;
}

.sidebar li > ul {
  margin-top: 0.25rem; /* reduce space above nested list */
}
