/* Academic CV: white background, restrained accents */

:root {
  --cv-paper: #ffffff;
  --cv-ink: #1c1c1c;
  --cv-ink-muted: #4a4a4a;
  --cv-rule: rgba(0, 0, 0, 0.1);
  --cv-link: #2c5282;
  --cv-link-hover: #1a365d;
  --cv-code-bg: #f5f5f5;
}

[data-md-color-scheme="slate"] {
  --cv-paper: var(--md-default-bg-color);
  --cv-ink: var(--md-typeset-color);
  --cv-ink-muted: var(--md-default-fg-color--light);
  --cv-rule: rgba(255, 255, 255, 0.12);
  --cv-link: #90cdf4;
  --cv-link-hover: #bee3f8;
  --cv-code-bg: rgba(255, 255, 255, 0.06);
}

body {
  background-color: var(--cv-paper);
}

.md-header {
  background-color: var(--cv-paper);
  border-bottom: 1px solid var(--cv-rule);
  box-shadow: none !important;
}

.md-tabs {
  background-color: var(--cv-paper);
  border-bottom: 1px solid var(--cv-rule);
  box-shadow: none;
}

.md-tabs__link {
  font-size: 0.8rem;
  opacity: 0.85;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  opacity: 1;
}

.md-sidebar {
  background-color: var(--cv-paper);
}

.md-nav__link {
  font-size: 0.8rem;
}

.md-typeset {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--cv-ink);
}

.md-typeset a {
  color: var(--cv-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.md-typeset a:hover {
  color: var(--cv-link-hover);
  border-bottom-color: currentColor;
}

.md-typeset h1 {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--cv-rule);
  color: var(--cv-ink);
}

.md-typeset h2 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.75em 0 0.5em;
  color: var(--cv-ink);
}

.md-typeset h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 1.5em 0 0.45em;
  color: var(--cv-ink-muted);
}

.md-typeset p {
  margin-block-start: 0.65em;
  margin-block-end: 0.65em;
}

.md-typeset ul li,
.md-typeset ol li {
  margin-bottom: 0.35em;
}

.md-typeset blockquote {
  border-left: 3px solid var(--cv-rule);
  background: rgba(0, 0, 0, 0.02);
  padding: 0.5em 1em;
  font-style: italic;
  color: var(--cv-ink-muted);
}

[data-md-color-scheme="slate"] .md-typeset blockquote {
  background: rgba(255, 255, 255, 0.03);
}

.md-typeset p > code,
.md-typeset li > code,
.md-typeset td > code,
.md-typeset th > code,
.md-typeset h2 > code,
.md-typeset h3 > code,
.md-typeset h4 > code {
  color: var(--cv-ink-muted);
  background-color: var(--cv-code-bg);
  border: 1px solid var(--cv-rule);
  border-radius: 2px;
  font-size: 0.88em;
  padding: 0.05em 0.35em;
}

/* Desktop: hide primary nav column so article uses that width */
@media screen and (min-width: 76.25em) {
  .md-main__inner.md-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 12.5rem);
  }

  .md-sidebar--primary {
    display: none;
  }

  .md-content__inner {
    max-width: none;
  }
}

img {
  max-width: 700px;
  height: auto;
}

/* Publication-style tables */
.md-typeset__table {
  min-width: 100%;
  margin-bottom: 0.75em;
  padding: 0 0.5rem;
}

.md-typeset table:not([class]) {
  display: table;
  font-size: 0.82rem;
  line-height: 1.45;
  border-collapse: collapse;
  border: 1px solid var(--cv-rule);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.md-typeset table:not([class]) th {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: none;
  border-bottom: 2px solid var(--cv-rule);
  padding: 0.55em 0.65em;
  vertical-align: bottom;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: rgba(255, 255, 255, 0.06);
}

.md-typeset table:not([class]) td {
  border-top: 1px solid var(--cv-rule);
  padding: 0.45em 0.65em;
  vertical-align: top;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.md-header__button.md-logo {
  opacity: 0.95;
}
