/* Header layout - push toggle to right */
header#banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header#banner .banner-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Theme toggle button */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.1em;
    line-height: 1;
    color: #333;
}

[data-theme="dark"] #theme-toggle {
    color: #e0e0e0;
}

#theme-toggle .sun { display: none; }
#theme-toggle .moon { display: inline-block; }

[data-theme="dark"] #theme-toggle .sun { display: inline-block; }
[data-theme="dark"] #theme-toggle .moon { display: none; }

/* Dark theme via data-theme attribute */
html[data-theme="dark"] {
    scrollbar-color: #6c6c6c #2e2e2e;
}

[data-theme="dark"] body {
    color: #ebebeb;
    background: #121212;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] header#banner a {
    color: #e0e0e0;
    text-decoration: none;
}

[data-theme="dark"] header#banner nav ul li a {
    color: #cccccc;
}

[data-theme="dark"] main#content a {
    color: #00b1ed;
}

[data-theme="dark"] main#content p {
    color: #f5f5f5;
}

[data-theme="dark"] main#content hr {
    background: #5c5c5c;
}

[data-theme="dark"] main#content #toc h4 {
    color: #d4d4d4;
}

[data-theme="dark"] main#content ul#posts small {
    color: #a7a7a7;
}

[data-theme="dark"] main#content ul#posts li a:hover {
    color: #21c7ff;
}

[data-theme="dark"] main#content header#post-header div {
    color: #a7a7a7;
}

