@charset "UTF-8";
/* CSS Document */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 auto;
    padding: 20px;
}

/* Main TOC at top */
.main-toc {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    padding: 20px 30px;
    margin-bottom: 40px;
}

.main-toc h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.main-toc > ul {
    list-style-type: none;
    padding-left: 0;
    column-count: 2;
    column-gap: 30px;
}

.main-toc > ul > li {
    margin-bottom: 15px;
    break-inside: avoid;
}

.main-toc > ul > li > a {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
}

.main-toc ul ul {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 8px;
}

.main-toc ul ul li {
    margin: 5px 0;
}

.main-toc a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.main-toc a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Section TOC */
.section-toc {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    margin: 20px 0 30px 0;
    border-radius: 3px;
}

.section-toc h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1976d2;
    font-size: 16px;
    font-weight: 600;
}

.section-toc ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.section-toc li {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.section-toc li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2196f3;
}

.section-toc a {
    color: #1976d2;
    text-decoration: none;
}

.section-toc a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Headings */
h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

h1:first-of-type {
    margin-top: 0;
}

h2 {
    color: #2980b9;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-top: 10px;
}

h3 {
    color: #27ae60;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
    border-left: 4px solid #27ae60;
    padding-left: 12px;
}

h4 {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    font-size: 13px;
}

th {
    background-color: #3498db;
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 10px;
    border: 1px solid #dee2e6;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Code */
code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.9em;
    color: #c7254e;
}

pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    line-height: 1.4;
}

pre code {
    background-color: transparent;
    color: #ecf0f1;
    padding: 0;
}

/* Images */
.page-main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Paragraphs */
.page-main p {
    margin-bottom: 12px;
    padding-left: 0;
}

/* Links */
.page-main a {
    color: #3498db;
    text-decoration: none;
}

.page-main a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Strong */
.page-main strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Print styles */
@media print {
    .main-toc, .section-toc {
        page-break-inside: avoid;
    }
}
