@font-face {
    font-family: 'Berkeley Mono';
    src: url('fonts/BerkeleyMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Berkeley Mono';
    src: url('fonts/BerkeleyMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

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

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --accent-color: #ffffff;
    --panel-padding: 30px;
}

body {
    font-family: 'Berkeley Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    min-height: 100vh;
    width: 100%;
}

/* Panel Base Styles */
.panel {
    background: var(--bg-color);
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    padding: var(--panel-padding);
}

.panel-content {
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    min-height: 0;
}

/* Index panel specific: size to content, no internal scrolling */
.index-panel.panel {
    height: auto;
}

.index-panel .panel-content {
    height: auto;
    overflow: visible;
}

/* Index Panel (Left) */
.index-panel {
    width: 100%;
}

.index-header {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.index-header:hover {
    opacity: 0.7;
}

.index-header h1 {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    color: var(--text-color);
}

.index-nav {
    margin-top: 1.5rem;
}

.nav-list {
    list-style: none;
}

.nav-list > li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    text-decoration: underline;
}

.nav-section {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-sublist {
    list-style: none;
    margin-left: 0;
}

.nav-sublist li {
    margin-bottom: 0.25rem;
}

.nav-sublist .nav-link {
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

/* Body Panel (Right) */
.body-panel {
    width: 100%;
}

.content-article {
    display: none;
}

.content-article.active {
    display: block;
}

.content-article h1 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text-color);
}

.content-article h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.content-article h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.content-article p {
    margin-bottom: 0.875rem;
    line-height: 1.6;
}

.content-article ul,
.content-article ol {
    margin-bottom: 0.875rem;
    margin-left: 1.25rem;
}

.content-article li {
    margin-bottom: 0.375rem;
}

.content-article a {
    color: var(--text-color);
    text-decoration: underline;
}

.content-article a:hover {
    opacity: 0.7;
}

/* Hide scrollbars for WebKit browsers */
.panel-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}
