/* Base styles */
:root {
    --text-color: #000;
    --background-color: #fff;
    --accent-color: #000;
    --spacing: 2rem;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
    padding: var(--spacing);
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing);
    background-color: white;
    border: 1px solid #000;
}

/* Typography */
h1, h2 {
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing);
    border-bottom: 1px solid #000;
    padding-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Sections */
section {
    margin-bottom: var(--spacing);
}

/* Navigation */
nav {
    margin-bottom: var(--spacing);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    border-bottom: 1px solid #000;
    padding-bottom: 1rem;
}

nav a {
    text-decoration: none;
    font-weight: normal;
}

nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Document list */
.document-list {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

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

/* Footer */
footer {
    margin-top: var(--spacing);
    padding-top: 1rem;
    border-top: 1px solid #000;
    text-align: center;
    font-size: 0.9rem;
}

a {
    color: var(--accent-color);
    /*text-decoration: none; */
}

a:hover {
    text-decoration: underline;
}

/* Document links are always underlined */
.document-link, 
.document-table a {
    text-decoration: underline;
}

.document-link:hover,
.document-table a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    :root {
        --spacing: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    body {
        padding: 0.5rem;
    }
}

/* Document table styles */
.document-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.document-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.document-table th, 
.document-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.document-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.document-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.document-table tr:hover {
    background-color: #e9e9e9;
}

.document-table .section-header {
    background-color: #e0e0e0;
    font-weight: bold;
    font-size: 1.1em;
}

.document-table a {
    color: var(--accent-color);
    text-decoration: underline;
}

.document-table a:hover {
    text-decoration: underline;
}

/* Document link style */
.document-link {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .document-table {
        font-size: 0.85em;
    }
    
    .document-table th, 
    .document-table td {
        padding: 8px 10px;
    }
}
