/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #e8e8e8;
}

/* Fixed header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.fixed-header.source-local {
    background: #2c3e50; /* Dark blue for local */
}

.fixed-header.source-remote {
    background: #2e7d7d; /* Blue-green/teal for remote */
}

.fixed-header nav {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
}

.header-info, .current-file, .file-meta {
    color: #ecf0f1;
    margin: 0 0.5rem;
}

.current-file {
    font-weight: bold;
}

.file-meta {
    font-size: 0.9em;
    color: #bdc3c7;
}

.refresh-button {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.refresh-button:hover {
    background: #2980b9;
}


/* Main content */
.main-content {
    margin-top: 60px;
    padding: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* File list styles */
.file-list h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.file-table {
    width: 100%;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-table thead {
    background: #34495e;
    color: white;
}

.file-table th, .file-table td {
    padding: 1rem;
    text-align: left;
}

.file-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.2s;
}

.file-table tbody tr:hover {
    background: #f8f9fa;
}

/* Configuration styling */
.file-row.configured .file-name a {
    color: #7f8c8d;
}

.file-row.unconfigured .file-name a {
    color: #3498db;
    font-weight: bold;
}

.config-menu {
    margin-right: 1rem;
}

.config-menu select {
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
}

.config-menu select:hover {
    background: rgba(255,255,255,0.2);
}

.config-tag {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    margin-left: 0.3rem;
    background: #ecf0f1;
    color: #95a5a6;
    border-radius: 2px;
    font-size: 0.7em;
    text-decoration: none;
    font-weight: normal;
    white-space: nowrap;
}

.config-tag:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

.file-configs {
    display: inline-block;
    margin-left: 0.5rem;
}

.file-name {
    white-space: nowrap;
}

.file-name a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.file-name a:hover {
    text-decoration: underline;
}

.file-size {
    color: #7f8c8d;
}

.file-modified {
    color: #95a5a6;
    font-size: 0.9em;
}

.no-files {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    color: #7f8c8d;
}

/* Markdown content styles */
.markdown-content {
    background: #fafafa;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    max-width: 65ch;
    margin: 0 auto;
}

.markdown-content h1, .markdown-content h2, .markdown-content h3,
.markdown-content h4, .markdown-content h5, .markdown-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.markdown-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 0.3rem;
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content ul, .markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Style for note references */
.markdown-content code.note-ref {
    font-size: 0.75em !important;
    color: #95a5a6 !important;
    background: #f9f9f9 !important;
    padding: 0.1rem 0.3rem !important;
}

/* Style for inline note references in regular text */
.markdown-content .inline-note-ref {
    font-size: 0.75em;
    color: #95a5a6;
    background: #f9f9f9;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
}

.markdown-content pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-content pre code {
    background: none;
    padding: 0;
}

/* Syntax Highlighting Styles */
.markdown-content .highlight {
    position: relative;
    background: #f8f8f8;
    border: 1px solid #e1e1e8;
    border-radius: 6px;
    padding: 0;
    margin: 1rem 0;
    overflow: auto;
}

.markdown-content .highlight pre {
    background: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 1rem;
    overflow: visible;
}

/* Copy button container */
.code-block-container {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #34495e;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    z-index: 10;
}

.code-block-container:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background: #2c3e50;
}

.copy-button.copied {
    background: #27ae60;
    opacity: 1;
}

/* Pygments syntax highlighting theme */
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #8f5902; font-style: italic } /* Comment */
.highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */
.highlight .g { color: #000000 } /* Generic */
.highlight .k { color: #204a87; font-weight: bold } /* Keyword */
.highlight .l { color: #000000 } /* Literal */
.highlight .n { color: #000000 } /* Name */
.highlight .o { color: #ce5c00; font-weight: bold } /* Operator */
.highlight .x { color: #000000 } /* Other */
.highlight .p { color: #000000; font-weight: bold } /* Punctuation */
.highlight .ch { color: #8f5902; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */
.highlight .cpf { color: #8f5902; font-style: italic } /* Comment.PreprocFile */
.highlight .c1 { color: #8f5902; font-style: italic } /* Comment.Single */
.highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */
.highlight .gd { color: #a40000 } /* Generic.Deleted */
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
.highlight .gr { color: #ef2929 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #000000; font-style: italic } /* Generic.Output */
.highlight .gp { color: #8f5902 } /* Generic.Prompt */
.highlight .gs { color: #000000; font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
.highlight .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #204a87; font-weight: bold } /* Keyword.Type */
.highlight .ld { color: #000000 } /* Literal.Date */
.highlight .m { color: #0000cf; font-weight: bold } /* Literal.Number */
.highlight .s { color: #4e9a06 } /* Literal.String */
.highlight .na { color: #c4a000 } /* Name.Attribute */
.highlight .nb { color: #204a87 } /* Name.Builtin */
.highlight .nc { color: #000000 } /* Name.Class */
.highlight .no { color: #000000 } /* Name.Constant */
.highlight .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #ce5c00 } /* Name.Entity */
.highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #000000 } /* Name.Function */
.highlight .nl { color: #f57900 } /* Name.Label */
.highlight .nn { color: #000000 } /* Name.Namespace */
.highlight .nx { color: #000000 } /* Name.Other */
.highlight .py { color: #000000 } /* Name.Property */
.highlight .nt { color: #204a87; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #000000 } /* Name.Variable */
.highlight .ow { color: #204a87; font-weight: bold } /* Operator.Word */
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
.highlight .mb { color: #0000cf; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #4e9a06 } /* Literal.String.Affix */
.highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
.highlight .dl { color: #4e9a06 } /* Literal.String.Delimiter */
.highlight .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #4e9a06 } /* Literal.String.Double */
.highlight .se { color: #4e9a06 } /* Literal.String.Escape */
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
.highlight .s1 { color: #4e9a06 } /* Literal.String.Single */
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #000000 } /* Name.Function.Magic */
.highlight .vc { color: #000000 } /* Name.Variable.Class */
.highlight .vg { color: #000000 } /* Name.Variable.Global */
.highlight .vi { color: #000000 } /* Name.Variable.Instance */
.highlight .vm { color: #000000 } /* Name.Variable.Magic */
.highlight .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */

.markdown-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #7f8c8d;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.markdown-content table th, .markdown-content table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
}

.markdown-content table th {
    background: #f4f4f4;
    font-weight: bold;
}

.markdown-content a {
    color: #3498db;
}

.markdown-content a:hover {
    text-decoration: underline;
}

/* Strikethrough text */
.markdown-content del, .markdown-content s, .markdown-content strike {
    text-decoration: line-through;
    color: #7f8c8d;
}

/* Checkbox support */
.markdown-content input[type="checkbox"] {
    margin-right: 0.5rem;
}

.markdown-content .task-list-item {
    list-style: none;
}

/* Content update animation */
@keyframes contentUpdate {
    0% {
        opacity: 0.7;
        background-color: #e8f4fd;
    }
    100% {
        opacity: 1;
        background-color: white;
    }
}

/* Table of Contents Styles */
.toc-container {
    position: fixed;
    top: 120px;
    left: 20px;
    width: 230px;
    background: white;
    border: 1px solid #e1e1e8;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 10;
    margin: 0 10px;
    overflow: hidden;
}

.toc-container.collapsed {
    width: auto;
    max-height: 50px;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e1e8;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

.toc-title {
    font-size: 0.9rem;
    user-select: none;
}

.toc-toggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: #7f8c8d;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.toc-toggle:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.toc-nav {
    padding: 8px 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.toc-link {
    display: block;
    padding: 6px 12px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: auto;
}

.toc-link:hover {
    background: #f1f3f4;
    color: #2c3e50;
    border-left-color: #3498db;
}

.toc-link.toc-level-h1 {
    font-weight: 600;
    font-size: 0.85rem;
    padding-left: 12px;
}

.toc-link.toc-level-h2 {
    padding-left: 18px;
    font-weight: 500;
}

.toc-link.toc-level-h3 {
    padding-left: 24px;
    font-size: 0.75rem;
}

.toc-link.toc-level-h4 {
    padding-left: 30px;
    font-size: 0.75rem;
    color: #6c757d;
}

.toc-link.toc-level-h5 {
    padding-left: 36px;
    font-size: 0.7rem;
    color: #6c757d;
}

.toc-link.toc-level-h6 {
    padding-left: 42px;
    font-size: 0.7rem;
    color: #6c757d;
}

/* Scroll offset for headings to account for fixed header */
.markdown-content h1, .markdown-content h2, .markdown-content h3,
.markdown-content h4, .markdown-content h5, .markdown-content h6 {
    scroll-margin-top: 150px;
}

/* Highlight effect for clicked headings */
.toc-highlight {
    animation: highlightHeading 2s ease-out;
}

@keyframes highlightHeading {
    0% {
        background-color: #e8f4fd;
        box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

/* YAML Metadata Styles - Top of content area, NOT left sidebar */
.yaml-container {
    background: white;
    border: 1px solid #e1e1e8;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 28px auto 1.5rem auto;
    max-width: 65ch;
    font-size: 1.1rem;
    overflow: hidden;
}

.yaml-container.collapsed {
    max-height: 50px;
}

.yaml-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.yaml-title {
    color: #333;
}

.yaml-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.yaml-toggle:hover {
    background-color: #e9ecef;
}

.yaml-content {
    padding: 1rem 3rem;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.yaml-item {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 0.85rem;
}

.yaml-item strong {
    color: #495057;
    margin-right: 6px;
}

.yaml-value {
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
}

/* Main content with TOC container */
.main-content {
    margin-left: 260px;
    position: relative;
}

/* Remove left margin on index/list page (no TOC) */
.main-content:has(.file-list) {
    margin-left: 0;
}

/* Hide gray TOC sidebar on list page */
.main-content:has(.file-list)::before {
    display: none;
}

/* Add vertical space between header and table on list page */
.file-list {
    margin-top: 1.5rem;
}

/* Create gray area for TOC */
.main-content::before {
    content: '';
    position: absolute;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 260px;
    background: #e8e8e8;
    z-index: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .fixed-header nav {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .main-content {
        padding: 1rem;
    }

    .file-table th, .file-table td {
        padding: 0.5rem;
    }

    .markdown-content {
        padding: 1.5rem;
        font-size: 1rem;
        max-width: 100%;
    }

    /* TOC adjustments for mobile */
    .toc-container {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-bottom: 1rem;
        max-height: 300px;
    }

    /* YAML metadata adjustments for mobile */
    .yaml-container {
        width: 100%;
        margin-bottom: 1rem;
        max-height: 300px;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* Header layout styles */
.viewer-controls {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.file-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.source-switcher {
    display: flex;
    gap: 0.5rem;
}

.version-selector {
    display: flex;
    align-items: center;
}

.version-selector select {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 120px;
    transition: all 0.2s ease;
}

.version-selector select:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.version-selector select option {
    background: #2c3e50;
    color: white;
    padding: 0.3rem;
}

/* Special styling for remote version selector */
.fixed-header.source-remote .version-selector select {
    background: rgba(255, 255, 255, 0.15);
}

.fixed-header.source-remote .version-selector select:hover {
    background: rgba(255, 255, 255, 0.25);
}

.source-btn {
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
}

.source-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.source-btn.active {
    background: white;
    color: #2c3e50;
    border-color: white;
    font-weight: 600;
}

/* Special styling for remote active button */
.fixed-header.source-remote .source-btn.active {
    color: #2e7d7d;
}

.config-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.config-menu select {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.config-menu select option {
    background: #2c3e50;
    color: white;
}

.remote-indicator {
    color: #3498db;
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* Footer styles */
.page-footer {
    margin-top: 30px;
    padding: 15px 0;
    text-align: center;
}

.footer-content {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.version-info {
    font-family: 'Courier New', monospace;
    margin-right: 10px;
}

.copyright {
    font-style: italic;
}

/* Mermaid diagram styling */
.mermaid {
    margin: 1rem 0;
    text-align: center;
    page-break-inside: avoid;
}

/* Ensure Mermaid diagrams are responsive */
.mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Copy button styling */
.copy-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 100;
    position: relative;
    pointer-events: auto;
}

.copy-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Ensure controls row has proper layout */
.controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.source-switcher {
    display: flex;
    gap: 8px;
}

.version-selector {
    display: flex;
    align-items: center;
}

/* Comprehensive Print Styles - Hide all control surfaces, show only document */
@media print {
    /* Hide all control surfaces and UI chrome */
    .fixed-header,
    .toc-container,
    .yaml-container,
    .page-footer,
    .copy-buttons,
    .copy-btn,
    .refresh-button,
    .source-switcher,
    .source-btn,
    .version-selector,
    .config-menu,
    .nav-link,
    .viewer-controls,
    .file-header-row,
    .controls-row {
        display: none !important;
    }

    /* Reset main content layout for print */
    .main-content {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Remove gray sidebar area */
    .main-content::before {
        display: none !important;
    }

    /* Optimize markdown content for print */
    .markdown-content {
        background: white !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Ensure body has white background for print */
    body {
        background: white !important;
    }

    /* Preserve existing print features for diagrams */
    .mermaid {
        page-break-inside: avoid;
        margin: 1rem 0;
    }

    /* Keep code blocks readable */
    .markdown-content pre {
        page-break-inside: avoid;
    }

    /* Hide copy buttons in code blocks */
    .copy-button,
    .code-block-container .copy-button {
        display: none !important;
    }
}