/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Selection Override */
::selection {
    background-color: #ff6600;
    color: #ffffff;
}

/* Base Typography Overrides */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Code Blocks Pre Style */
pre {
    font-family: 'JetBrains Mono', monospace;
    direction: ltr;
}

/* Link Hover Underline Animation */
a {
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

a:hover {
    color: #ff6600;
}

/* Prose Styles for Documentation */
.prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 6rem; /* Offset for sticky header */
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose code {
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid #333333;
    color: #e5e5e5;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    color: inherit;
}

.prose strong {
    color: #ffffff;
    font-weight: 600;
}

.prose ul, .prose ol {
    padding-left: 1.625rem;
    margin-bottom: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
    color: #a3a3a3;
}

/* Shadow DOM reset */
:host {
    all: initial;
    font-family: 'JetBrains Mono', monospace;
    display: block;
}