*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
        sans-serif;
    color: #333;
    background: #f5f5f5;
}

/* Header / Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 10;
    gap: 1rem;
}
.header h1 {
    font-size: 1.1rem;
    font-weight: 600;
}
.header h1 a {
    color: #fff;
    text-decoration: none;
}
.header a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
}
.header a:hover {
    color: #fff;
}
.header .spacer {
    flex: 1;
}
.header nav {
    display: flex;
    gap: 0.75rem;
}

/* Main content below fixed header */
.main {
    margin-top: 56px;
}

.demo-1,
.demo-2 {
    /* scrollbar-clone fade effect */
    scrollbar-clone {
        opacity: 0;
        transition: opacity 0.3s 0.15s;
    }
    scrollbar-clone:hover,
    scrollbar-clone[data-scrolling] {
        opacity: 1;
        transition: opacity 0s 0s;
    }
}
