/* Custom styles for TypeScript for .NET Engineers */

/* Improve table readability */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9em;
}

table th {
    background-color: var(--table-header-bg);
    font-weight: 600;
    text-align: left;
    padding: 0.6em 0.8em;
    white-space: nowrap;
}

table td {
    padding: 0.5em 0.8em;
    vertical-align: top;
}

table tr:nth-child(even) {
    background-color: var(--table-alternate-bg);
}

/* Blockquote callouts — style the article headers */
blockquote {
    border-left: 4px solid var(--sidebar-active);
    padding: 0.8em 1.2em;
    margin: 1.5em 0;
    background-color: var(--quote-bg);
    border-radius: 0 4px 4px 0;
}

blockquote strong {
    color: var(--sidebar-active);
}

/* Improve code block readability */
pre {
    padding: 1em;
    border-radius: 6px;
    line-height: 1.5;
}

code {
    font-size: 0.88em;
}

/* Inline code styling */
:not(pre) > code {
    padding: 0.15em 0.35em;
    border-radius: 3px;
}

/* Wider content area for tables and code */
.content main {
    max-width: 900px;
}

/* Horizontal rules as section dividers */
hr {
    border: none;
    border-top: 1px solid var(--table-border-color);
    margin: 2.5em 0;
}

/* Better heading spacing */
h2 {
    margin-top: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--table-border-color);
}

h3 {
    margin-top: 1.5em;
}

/* Article metadata line styling */
blockquote p {
    margin: 0.3em 0;
}
