/* GitHub-style documentation theme */

/* Hide Pandoc's auto-generated title to avoid duplicate H1 */
header#title-block-header {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #24292e;
    background-color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 40px;
}

h1 {
    font-size: 2em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
    margin-top: 24px;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
    margin-top: 24px;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.25em;
    margin-top: 24px;
    margin-bottom: 16px;
}

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 85%;
    padding: 0.2em 0.4em;
}

pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
}

pre code {
    background-color: transparent;
    padding: 0;
    font-size: 100%;
}

ul, ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

li + li {
    margin-top: 0.25em;
}

blockquote {
    border-left: 0.25em solid #dfe2e5;
    color: #6a737d;
    padding: 0 1em;
    margin: 0 0 16px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
}

table th,
table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

table th {
    background-color: #f6f8fa;
    font-weight: 600;
}

table tr {
    background-color: #ffffff;
    border-top: 1px solid #c6cbd1;
}

table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

img {
    max-width: 100%;
    box-sizing: border-box;
}

hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

/* Viewer link styling */
.viewer-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2ea44f;
    color: white !important;
    border-radius: 6px;
    font-weight: 600;
    margin: 20px 0;
    text-decoration: none !important;
}

.viewer-link:hover {
    background-color: #2c974b;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
}
