/* === Typography and Layout === */
body {
  font-family: Georgia, "Times New Roman", serif;
  background-color: white;
  color: #222;
  margin: 0;
  padding: 0;
}

a { color: #005bbb; }

/*a:visited { color: #3e7ccc; }*/

p {
  line-height: 1.7;
  margin-bottom: 1.2em;
}

p.indented {
  text-indent: 2em;
  /* or margin-left: 2em; */
}

/* Apply to all unordered and ordered list items */
ul li, ol li {
  line-height: 1.7; /* Or use a unit like 24px if you prefer fixed spacing */
}



h1, h2, h3 {
  font-family: inherit;
  font-weight: normal;
  line-height: 1.3;
  color: #222;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }

/* === List Heading Consistency === */
.list-heading {
  min-height: 1.3;  /* Adjust this value to match the desired height of "Notes" */
  display: flex;
  align-items: center;
}

/* === Mathematical Notation === */
.math-inline {
  vertical-align: middle;
}

.math-block {
  display: flex;
  justify-content: center;
  margin: 1.2em 0;
}

.math-block img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === Header Navigation === */
header {
  background: #ffffff;
  border-bottom: 1px solid #ccc;
  padding: 0.75em 1.5em;
  text-align: center;
}

nav {
  font-size: 0.9em;
  letter-spacing: 0.03em;
  line-height: 1.5;
  white-space: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25em;
}

nav a {
  color: #005bbb;
  text-decoration: none;
  margin: 0 0.6em;
}

nav a:hover,
nav a:focus {
  text-decoration: underline;
}

/*nav a:visited {
  color: #004080;
}*/

nav a:visited {
  color: #005bbb;
}

.nav-divider {
  border-top: 1px solid #ccc;
  margin: 1em 0;
}

.site-nav {
  font-size: 0.9em;
  text-align: left;
  margin-bottom: 1em;
}

.site-nav a {
  text-decoration: none;
  color: #333;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* === Main Content === */
main {
  padding: 2em;
  max-width: 800px;
  margin: 0 auto;
}

/* === Columns (for homepage) === */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  /*margin-top: 1em;*/
}

.column h2 {
  margin-top: 0.9em; /* override the usual h2 top margin */
}

.column {
  flex: 1;
  min-width: 250px;
}

/* === List of Links Styling within Columns === */
.column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.column li {
  margin: 0.5em 0;
  line-height: 1.2;
}

.column a {
  font-size: 1em;
  color: #005bbb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.column a:hover,
.column a:focus {
  border-bottom: 1px solid #003366;
}

/* === Generic Link List Styling === */
/* Apply this class to any list that should have the same styling as the column lists. */
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  margin: 0.5em 0;
  line-height: 1.2;
}

.link-list a {
  font-size: 1em;
  color: #005bbb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-list a:hover,
.link-list a:focus {
  border-bottom: 1px solid #003366;
}

/* === Code Styling === */
code, pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 1em;
  background-color: #f5f5f5;
}

code:not(pre code) {
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  margin: 1.5em 0;
  padding: 1em;
  overflow-x: auto;
  border-radius: 4px;
  line-height: 1.5;
  display: block;
}

pre code {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

p:empty {
  display: none;
}

/* === Blockquote === */
blockquote {
  border-left: 4px solid #ccc;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #555;
  background-color: #f9f9f9;
}

/* === Images === */
img {
  max-width: 100%;
  height: auto;
}

/* === Horizontal Rule (content-aligned) === */
.content-hr-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-hr-wrapper hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #ccc;
}

/* === Footnotes === */
sup a {
  font-size: 1em;
  font-weight: bold;
  vertical-align: super;
  text-decoration: none;
  padding-left: 2px;
  padding-right: 2px;
  color: #005bbb;
}

.footnotes {
  font-size: 1.1em;
  margin-top: 2em;
}

.footnotes ol {
  padding-left: 1.5em;
}

.footnotes li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.footnotes p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.1;
}

.footnotes a {
  text-decoration: none;
}

/* === Tables === */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 2em 0;
  font-size: 1em;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.75em 1em;
  text-align: left;
  vertical-align: top;
}

th {
  background-color: #f0f0f0;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #fafafa;
}


/* === Footer === */
.site-footer {
  text-align: left;
  margin-top: 4em;
  font-size: 0.85em;
  color: #888;
}

.site-footer a {
  color: #666;
  text-decoration: none;
  margin: 0 0.3em;
}

.site-footer a:hover {
  text-decoration: underline;
}


/* === Responsive === */
@media (max-width: 600px) {
  .columns {
    flex-direction: column;
  }

  nav {
    display: block;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
  }

  nav a {
    display: inline-block;
    margin: 0.3em;
  }
}

