/*Code font option - Monaspace (optional)*/
/*@font-face {
  font-family: 'Monaspace Neon';
  src: url('../fonts/MonaspaceNeon-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}*/

/*:root {
  --md-code-font: "Monaspace Neon";
}*/

/*code, pre, .highlight {
  font-family: 'Monaspace Neon', monospace !important;
}*/

/*Typography sizing*/

/* Reduce overall body text */
.md-typeset {
  font-size: 0.75rem;  /* default is 1rem (16px) */
}

/* Reduce inline code font size */
.md-typeset code {
  font-size: 0.6rem;
}

/* Reduce line numbers in code blocks */
.highlight .linenos {
  font-size: 0.6rem;
}



/*Code block styling*/
/* Round the entire code block container */
.md-typeset div.highlight,
.md-typeset .highlighttable {
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-top: 2px;
}



/*Color scheme (UChicago Maroon)*/
/* Light mode */
:root {
  --md-primary-fg-color: #800000;
  --md-primary-fg-color--light: #9d2235;
  --md-primary-fg-color--dark: #5c0000;
  --md-accent-fg-color: #800000;
  --md-accent-fg-color--transparent: rgba(128, 0, 0, 0.1);
}

/* Dark mode */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #9d2235;
  --md-primary-fg-color--light: #b8374a;
  --md-primary-fg-color--dark: #800000;
  --md-accent-fg-color: #b8374a;
  --md-accent-fg-color--transparent: rgba(184, 55, 74, 0.1);
}



/*Table styling*/
.md-typeset table:not([class]) {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  font-size: 0.65rem;
}

.md-typeset table:not([class]) th {
  background-color: #800000;
  color: white;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.md-typeset table:not([class]) td {
  padding: 10px 16px;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) tr:hover {
  background-color: rgba(128, 0, 0, 0.05);
}

/* Alternating row colors */
.md-typeset table:not([class]) tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/*Text alignment*/
/* Only justify main content area */
.md-content__inner p {
  text-align: justify;
  text-justify: inter-word;
}

/* Exclude code blocks and specific elements */
pre, code, .md-nav, .md-header {
  text-align: left !important;
}

/*Header logo sizing*/
.md-header__button.md-logo img,
.md-logo img {
  max-height: 60px;
  max-width: 60px;
  width: auto;
  height: auto;
}


.md-typeset a:not(.headerlink):not(.toclink):not(.md-annotation__index) {
  color: var(--md-accent-fg-color);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.md-typeset a:not(.headerlink):not(.toclink):not(.md-annotation__index):hover {
  color: var(--md-primary-fg-color--dark);
  text-decoration-style: solid;
}

.md-typeset a[href^="http"]:not(.headerlink):not(.toclink):not(.md-annotation__index):after {
  content: "↗";
  font-size: 0.75em;
  margin-left: 0.2em;
  opacity: 0.6;
}

.md-typeset .highlight a,
.md-typeset .highlighttable a,
.md-typeset .linenos a,
.md-typeset .linenodiv a {
  color: inherit !important;
  text-decoration: none !important;
}

.md-typeset .highlight a:after,
.md-typeset .highlighttable a:after,
.md-typeset .linenos a:after,
.md-typeset .linenodiv a:after {
  content: none !important;
}

/* ─── Blog Feed ─────────────────────────────────────────────── */

/* Entry card - left maroon accent border */
.md-post {
  border-left: 3px solid #800000;
  padding-left: 1rem;
  margin-bottom: 1.5rem !important;
}

/* Metadata line (date, category, read time) */
.md-post .md-meta {
  font-size: 0.65rem !important;
  opacity: 0.75;
  margin-bottom: -0.3rem !important;
}

/* Post header */
.md-post__header {
  margin-bottom: 0 !important;
}

/* Post title */
.md-post h2 {
  font-size: 1rem !important;
  margin-top: 0rem !important;
  margin-bottom: 0 !important;
}

/* Excerpt content */
.md-post__content p {
  font-size: 0.7rem !important;
  margin-top: 0.2rem !important;
  margin-bottom: 0 !important;
}

/* Continue reading link */
.md-post__action {
  margin-top: 0.2rem !important;
  margin-bottom: 0 !important;
}

.md-post__action a {
  font-size: 0.65rem !important;
}

.md-content img {
  border-radius: 8px;
}