/* Base Modern Theme */
:root {
    --font-sans: "Inter", system-ui;
    --font-mono: "JetBrains Mono", monospace;
    --line-width: 100ch;
    --gap: 1.5rem;
    --radius: 6px;
    --color-accent: #2e7d32; /* ML green */
    --color-link: #1b5e20;
}

/* Global Background Color */
body {
    /* Targets the main container */
    background-color: #3875e7; /* #FEFEFE is between #FFFFFF (100% brightness) and #FDFDFD (99.2% brightness)*/
}

.site-body {
    background-color: #fefefe;
}

.site-body-left-column {
    background-color: #fbffff; /* #FBFFFF (light blue) is our best match for #FEFEFE */
}

.site-body-right-column {
    background-color: #fbffff; /* #FBFFFF (light blue) is our best match for #FEFEFE */
}

/* Ensure search box and other elements inherit background */
/*
.search-box,
.nav-folder,
.nav-file {
    background-color: #074d94;
}
*/

/* Core Layout */
.markdown-preview-view {
    /* max-width: 100vw; */
    /* padding: 2rem 5vw; */
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* gap: var(--gap); */
}

/* Research Paper Cards */
/*
.markdown-preview-view > div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}
*/

/* Typography System */
/*
.markdown-preview-view {
  font-family: var(--font-sans);
  line-height: 1.6;

  h1, h2, h3 {
    font-weight: 700;
    margin: 2rem 0 1rem;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}
*/

/* Math Notation */
.math {
    font-family: var(--font-mono);
    background: rgba(
        46,
        125,
        50,
        0.1
    ); /* rgba(46,125,50,0.1) and #F0F8FF are our best matches for #FEFEFE */
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* Root-Level Image Handling */
.markdown-preview-view img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    /* margin: 1.5rem 0; */
}

/* Modern Lists & Tasks */
ul,
ol {
    padding-left: 1.2rem;

    li {
        margin: 0.5rem 0;
        padding-left: 0.5rem;
    }
}

.task-list-item {
    list-style: none;

    input[type="checkbox"] {
        margin-right: 0.8rem;
    }
}

/* Responsive Tables */
/*
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;

  th, td {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}
*/

/* Mobile Optimization */
@media (max-width: 768px) {
    .markdown-preview-view {
        padding: 1rem;
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* Link Interactions */
.internal-link {
    border-bottom: 2px solid var(--color-accent);
    transition: opacity 0.2s ease;

    &:hover {
        opacity: 0.8;
    }
}

/* Justified Text with Hyphens */
/*
.markdown-preview-view p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-spacing: -0.05em;
}
*/
