* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-weight: 400;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
    background-color: #fff;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #777;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #333;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
        margin: -1rem -1rem 2rem -1rem;
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

h1 {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 10px;
}

h2 {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
}

h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1px;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

a:hover {
    color: #777;
    border-bottom-color: #333;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    margin: -2rem -2rem 40px -2rem;
    box-sizing: border-box;
}

.hero h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 42px;
    font-weight: 300;
}

.hero h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 300;
}

.hero p {
    font-size: 16px;
    color: #777;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 800px; /* Limits to roughly 2 columns */
}

@media (min-width: 769px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr); /* Force exactly 2 columns on larger screens */
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

.link-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.link-card:hover {
    border-color: #bbb;
}

.link-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.link-card p {
    color: #777;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.link-card a {
    color: #333;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1px;
}

.link-card a:hover {
    border-bottom-color: #333;
}

code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #d73a49;
    border: 1px solid #e1e4e8;
}

pre {
    background: #f6f8fa;
    color: #24292e;
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid #e1e4e8;
    font-size: 13px;
    line-height: 1.2;
}

.docs-page pre {
    padding: 6px;
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.2;
}

pre code {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font-size: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

th {
    background: #f8f9fa;
    font-weight: bold;
}

.footer {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 1px solid #e5e5e5;
    background: #f8f8f8;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer p {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
    font-weight: 400;
}

.footer a {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
}

.footer a:hover {
    opacity: 0.7;
}

/* Documentation-specific styles */
body.docs-page {
    font-size: 14px;
    line-height: 1.3;
}

.docs-page .content {
    max-width: 1000px;
    padding: 1rem;
}

.docs-page h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e4e8;
    line-height: 1.2;
}

.docs-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 8px 0;
    color: #24292e;
    line-height: 1.2;
}

.docs-page h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 6px 0;
    color: #24292e;
    line-height: 1.2;
}

.docs-page h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0 4px 0;
    color: #24292e;
    line-height: 1.2;
}

.docs-page p {
    margin-bottom: 8px;
    color: #24292e;
    font-size: 14px;
    line-height: 1.3;
}

.docs-page ul, .docs-page ol {
    margin: 8px 0;
    padding-left: 20px;
}

.docs-page li {
    margin-bottom: 3px;
    color: #24292e;
    font-size: 14px;
    line-height: 1.3;
}

.docs-page blockquote {
    margin: 8px 0;
    padding: 0 12px;
    color: #6a737d;
    border-left: 3px solid #dfe2e5;
    line-height: 1.3;
}

.docs-page .hero {
    display: none; /* Hide hero section on docs pages */
}

/* TypeDoc specific styling */
.docs-page .tsd-signature {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 8px;
    margin: 6px 0;
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.2;
}

.docs-page .tsd-panel {
    margin: 8px 0;
    padding: 8px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    background: #f6f8fa;
}

.docs-page .tsd-panel-group > h1,
.docs-page .tsd-panel-group > h2,
.docs-page .tsd-panel-group > h3 {
    background: none;
    border: none;
    margin: 12px 0 6px 0;
}

/* Compact parameter lists */
.docs-page .tsd-parameters {
    margin: 4px 0;
}

.docs-page .tsd-parameter {
    margin: 2px 0;
}

/* Make type signatures more readable */
.docs-page .tsd-signature-type {
    color: #005cc5;
}

.docs-page .tsd-signature-symbol {
    color: #24292e;
}