/* Standalone Cory documentation styles */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #243140;
    background: #eef3f8;
}

.cory-documentation-page {
    background: linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.doc-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #d8e1eb;
    box-shadow: 0 14px 40px rgba(30, 45, 62, 0.08);
    overflow: hidden;
}

.doc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    text-align: center;
    position: relative;
}

.back-link {
    position: absolute;
    left: 20px;
    top: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
}

.doc-logo {
    max-width: 200px;
    height: auto;
}

.doc-content {
    padding: 60px;
    color: #314152;
    line-height: 1.8;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.page-link-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f3f6fa;
    border: 1px solid #d6dee8;
    color: #22324a;
    font-weight: 600;
    text-decoration: none;
}

.page-link-card:hover {
    background: #e8eef7;
    border-bottom-color: #d6dee8;
}

.doc-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #16202a;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.doc-content h2 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #22324a;
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 8px;
}

.doc-content h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2d3f58;
}

.doc-content h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #435160;
}

.doc-content p,
.doc-content ul,
.doc-content ol,
.doc-content pre,
.doc-content table {
    margin-bottom: 20px;
}

.doc-content ul,
.doc-content ol {
    padding-left: 30px;
}

.doc-content li {
    margin-bottom: 10px;
}

.doc-content a {
    color: #3558d6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.doc-content a:hover {
    border-bottom-color: #3558d6;
}

.doc-content code {
    background: #f3f6fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Monaco, Consolas, monospace;
    font-size: 0.9em;
    color: #9a275f;
}

.doc-content pre {
    background: #f3f6fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #d8e1eb;
}

.doc-content pre code {
    background: none;
    padding: 0;
    color: #243140;
}

.doc-content hr {
    border: none;
    border-top: 2px solid #e1e4e8;
    margin: 40px 0;
}

.doc-content strong {
    font-weight: 600;
    color: #16202a;
}

@media (max-width: 768px) {
    .doc-content {
        padding: 30px 20px;
    }

    .doc-header {
        padding: 30px 20px;
    }

    .doc-content h1 {
        font-size: 2em;
    }

    .doc-content h2 {
        font-size: 1.6em;
    }

    .back-link {
        position: static;
        display: block;
        margin-bottom: 20px;
    }
}