.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px; /* Main content + Right sidebar */
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; } /* Stacks on mobile */
}

/* Light Pico Slate background for the sidebar */
aside {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background-color: #f1f5f9; /* Pico Slate 100 (use #f8fafc for even lighter Slate 50) */
  padding: 1.25rem 1.5rem;
  border-radius: var(--pico-border-radius);
}

/* Dark mode support so the sidebar doesn't stay bright white if a visitor uses Dark Mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) aside {
    background-color: #1e293b; /* Pico Slate 800 */
  }
}
[data-theme="dark"] aside {
  background-color: #1e293b;
}

/* Keep sidebar link lists neat and compact */
aside ul { 
  padding-left: 1rem; font-size: 0.75rem; 
}

aside nav li {
  padding-block: 0.15rem;
}

aside section {
  margin-bottom: 1.5rem;
}

aside section:last-child {
  margin-bottom: 0;
}

/** Lian Tze's own additions **/
.dropcap {
	float:left;
	font-size:850%;
	color:#C83F55;
	font-family:Georgia,Times,'Times New Roman',serif;
	line-height:1em;
	margin-right:.2em;
	margin-bottom:-.05em;
}

.tex, .latex {
  font-family: "Times New Roman", Times, Georgia, serif;
  letter-spacing: 0;
}

.tex sub, .latex sub, .latex sup {
  position: static;
  line-height: normal;
  top: auto;
  bottom: auto;
  text-transform: uppercase;
}

.tex sub, .latex sub {
  font-size: 1em;
  vertical-align: -0.45ex;
  margin-left: -0.16em;
  margin-right: -0.12em;
}

.latex sup {
  font-size: 0.78em;
  vertical-align: 0.25em;
  margin-left: -0.32em;
  margin-right: -0.14em;
}