/* Minimal style matching nathanstefanik.xyz (see its STYLE.md): browser default
   serif, no font-family, no web fonts, no custom colors — layout rules only.
   Math is native MathML, so formulas inherit the same serif as the prose. */

/* Body styles */
body {
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

/* Navigation styles (same as pagestyle.css on the main site) */
.navigation {
    overflow: hidden;
    top: 0px;
}
.navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.navigation li {
    float: left;
    font-size: 18px;
}
.navigation a {
    display: block;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 15px;
    text-align: center;
    text-decoration: none;
}
.navigation li a:hover {
    text-decoration: underline;
}

/* Typography */
p {
    line-height: 1.5;
    text-align: justify;
}
li {
    line-height: 1.5;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Problem title and its difficulty/topic line read as one unit */
h3 {
    margin-bottom: 0.2em;
}
h3 + p {
    margin-top: 0;
}

/* Answer keys */
details {
    margin: 1em 0;
}
summary {
    cursor: pointer;
}

/* Display math scrolls rather than overflowing the page on a narrow screen */
math[display="block"] {
    display: block;
    margin: 1em 0;
    overflow-x: auto;
}

/* Tables */
table {
    border-collapse: collapse;
}
th {
    text-align: left;
    border-bottom: 2px solid black;
    padding: 6px 16px 6px 0;
}
td {
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ccc;
    padding: 6px 16px 6px 0;
}
pre {
    overflow-x: auto;
}
