body {
  margin: 0;
  font-family: 'Ppneuemontreal', sans-serif;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 350px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  font-family: 'Ppneuemontreal', sans-serif;
  border: 1px solid #bdbdbd;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 16px rgba(87,73,122,0.25);
  outline: none;
}
.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  min-height: 250px;
}
.card a {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-family: 'Ppneuemontreal', sans-serif;
}

.card-content {
  position: static;
  width: 100%;
  padding: 24px 20px 20px 20px;
  color: #34495e;
  z-index: 2;
  background: none;
  font-family: 'Ppneuemontreal', sans-serif;
  border-top: 1px solid #e0e0e0;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  font-family: 'Ppneuemontreal', sans-serif;
  color: #34495e;
}

.card-desc {
  font-size: 1.1rem;
  font-weight: 400;
  font-family: 'Ppneuemontreal', sans-serif;
  color: #34495e;
}

.button {
  background: #57497a;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: 'Ppneuemontreal', sans-serif;
  font-weight: 400 !important;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(87,73,122,0.08);
}
.button:hover, .button:focus {
  background: #463a63;
  box-shadow: 0 2px 8px rgba(87,73,122,0.18);
}

.markdown-section ol {
  margin: 0;
}

.markdown-section h1 {
  margin-top: 3rem;
}

.markdown-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #e0e0e0;
}

.markdown-section h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 1.5rem;
  color: #4a4a4a;
}

/* Right sidebar TOC styles */
aside.page-toc {
  position: fixed;
  right: 0;
  top: 80px;
  bottom: 0;
  width: 250px;
  overflow-y: auto;
  padding: 20px;
  border-left: 1px solid #e0e0e0;
  background: #fff;
  font-family: 'Ppneuemontreal', sans-serif;
  z-index: 10;
}

.page-toc h3 {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 16px;
}

.page-toc a {
  text-decoration: none;
  color: #34495e;
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 1;
  border-left: 3px solid transparent;
  margin-left: -12px;
}

.page-toc a:hover {
  color: #57497a;
  border-left-color: #e0e0e0;
}

.page-toc a.active {
  color: #57497a;
  font-weight: 500;
  border-left-color: #57497a;
  background-color: rgba(87, 73, 122, 0.05);
}

.page-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-toc ul ul {
  padding-left: 12px;
}

/* Adjust main content to make room for TOC */
.content {
  padding-right: 280px;
}

/* Hide TOC on smaller screens */
@media screen and (max-width: 1440px) {
  .page-toc {
    display: none !important;
  }

  .content {
    padding-right: 0 !important;
  }
}