/* Modify this file to add your own custom styles */
nav {
  justify-content: space-between;
  align-items: center;
}

p {
    word-wrap: break-word;
	color: #131313;
    width: 60%;
}

article {
    padding: 0 0
}

section>p {
    width: 60%;
}

@import url('https://fonts.cdnfonts.com/css/latin-modern-math');
body {
	min-height: 100vh;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	font-size: 1.4rem;
}

a {
	text-decoration: underline;
}


h1,
h2,
h3,
h4,
h5 {
  font-style: normal;
  font-weight: bold;
}

code {
	line-height: 1.3;
	font-family: 'JetBrains Mono', monospace;
}

/* Block math equations - display as block, centered */
figure[role="math"] {
    zoom: 1;
    font-family: 'Latin Modern Math', math;
    display: block;
    width: 55%;
    text-align: center;
    margin: 1em 0;
    padding: 0.5em 0;
    font-size: 1.4em;
    line-height: 1.2;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Math content wrapper - prevent shrinking */
figure[role="math"]>* {
    display: inline-block;
    min-width: max-content;
    text-align: center;
}

figure>figure[role="math"] {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0.5em 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Math content wrapper for nested figures */
figure>figure[role="math"]>* {
    display: inline-block;
    min-width: max-content;
    text-align: center;
}

/* Inline math - smaller size, aligned with text baseline */
span[role="math"] {
    display: inline-block;
    vertical-align: baseline;
    margin: 0 0.1em;
}

.space-container {
    display: flex;
    justify-content: space-between;
    width: 55%;
}