/* KISS Chain Whitepaper CSS - Print-friendly */
@media screen {
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
        max-width: 800px;
        margin: 2rem auto;
        padding: 2rem;
        line-height: 1.6;
        color: #333;
        background: #fff;
    }
}

@media print {
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
        font-size: 25.6pt;
        line-height: 1.6;
        color: #000;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    table, figure, pre {
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

h1 {
    font-size: 2.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}

h2 {
    font-size: 1.95rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 0.25rem;
}

h3 {
    font-size: 1.625rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

code {
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    border-left: 3px solid #f59e0b;
}

pre code {
    background: none;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

th {
    background: #f5f5f5;
    font-weight: 600;
}

blockquote {
    border-left: 4px solid #f59e0b;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #666;
    font-style: italic;
}

a {
    color: #f59e0b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#TOC {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

#TOC ul {
    list-style: none;
    padding-left: 1rem;
}

#TOC > ul {
    padding-left: 0;
}

#TOC a {
    color: #333;
}

#TOC a:hover {
    color: #f59e0b;
}
