html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #212529;
}

h1:focus {
    outline: none;
}

/* Article content styling */
.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.article-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
}

.article-content code {
    color: #d63384;
    font-size: 0.875em;
}

.article-content pre code {
    color: inherit;
}

.article-content blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    color: #6c757d;
    margin: 1rem 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

.article-content th {
    background-color: #f8f9fa;
}

/* Hero section */
.hero {
    background-color: #121214 !important;
    color: #ffffff;
    padding: 3rem 0;
}

.hero .text-muted {
    color: #a0a0a5 !important;
}

.hero .btn-dark {
    background-color: #e8862a;
    border-color: #e8862a;
    color: #121214;
    font-weight: 600;
}

.hero .btn-dark:hover {
    background-color: #d0771f;
    border-color: #d0771f;
}

/* Article cards */
.article-card {
    transition: box-shadow 0.2s ease-in-out;
}

.article-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}
