/* Cheatsheet Shared Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 9pt;
    line-height: 1.3;
    color: #1a1a1a;
    background: #f5f5f5;
}

.page {
    background: white;
    max-width: 8.5in;
    margin: 0 auto;
    padding: 0.4in 0.5in;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header {
    text-align: center;
    margin-bottom: 0.15in;
    padding-bottom: 0.1in;
    border-bottom: 3px solid #2c5aa0;
}

.header h1 {
    font-size: 20pt;
    color: #2c5aa0;
    margin-bottom: 2px;
    font-weight: 700;
}

.header .subtitle {
    font-size: 10pt;
    color: #666;
    font-weight: 500;
}

.columns {
    column-count: 2;
    column-gap: 0.25in;
}

.section {
    margin-bottom: 0.15in;
    break-inside: avoid-column;
    page-break-inside: avoid;
}

.section-title {
    background: #2c5aa0;
    color: white;
    padding: 3px 8px;
    font-size: 10pt;
    font-weight: 600;
    margin-bottom: 4px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8.5pt;
    margin-bottom: 6px;
}

th {
    background: #e8f0f8;
    padding: 3px 5px;
    text-align: left;
    font-weight: 600;
    font-size: 8pt;
    border-bottom: 1px solid #2c5aa0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

td {
    padding: 3px 5px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

code {
    background: #f8f8f8;
    padding: 1px 4px;
    border-radius: 2px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 8pt;
    color: #c7254e;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.note {
    background: #fffbea;
    border-left: 3px solid #f9a825;
    padding: 4px 6px;
    margin: 6px 0;
    font-size: 8pt;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.note strong {
    color: #f57c00;
}

.op-col {
    width: 15%;
    font-weight: 600;
    font-family: 'Consolas', monospace;
}

.name-col {
    width: 25%;
}

.example-col {
    width: 35%;
    font-family: 'Consolas', monospace;
    font-size: 7.5pt;
}

.full-width {
    column-span: all;
    margin-top: 0.1in;
}

/* Print Styles */
@page {
    size: letter;
    margin: 0.4in 0.5in;
}

@media print {
    body {
        background: white;
    }

    .page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .header {
        break-after: avoid;
        page-break-after: avoid;
    }

    .columns {
        column-count: 2;
        column-gap: 0.25in;
    }

    .section {
        break-inside: avoid-column;
        page-break-inside: avoid;
    }

    .full-width {
        column-span: all;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    table {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .note {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
