/* Latin Modern (Computer Modern for LaTeX) */
@font-face {
    font-family: 'Latin Modern';
    src: url('fonts/lmroman10-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Latin Modern';
    src: url('fonts/lmroman10-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Latin Modern';
    src: url('fonts/lmroman10-italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Latin Modern Mono';
    src: url('fonts/lmmono10-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paper-like colors (Light mode - default) */
    --bg-paper: #ffffff;
    --bg-subtle: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #cccccc;
    --border-light: #e0e0e0;
    --accent: #0066cc;
    --accent-light: #4d94ff;

    /* Typography */
    --font-serif: 'Latin Modern', 'Computer Modern', 'Times New Roman', serif;
    --font-mono: 'Latin Modern Mono', 'Courier New', monospace;

    /* Spacing - LaTeX article style */
    --content-max-width: 650px;
    --sidebar-width: 160px;
    --line-height: 1.6;
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg-paper: #1a1a1a;
    --bg-subtle: #242424;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #444444;
    --border-light: #333333;
    --accent: #6cacff;
    --accent-light: #8ec4ff;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
    background: var(--border-light);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

:root .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

body {
    font-family: var(--font-serif);
    background: var(--bg-paper);
    color: var(--text-primary);
    line-height: var(--line-height);
    font-size: 11pt;
    overflow-x: hidden;
}

/* Loss Landscape Sidebar - Vertical slice of landscape */
.contour-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    /* Mathematically generated topographic landscape */
    background-image: url('../sidebar_landscape.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 1px solid var(--border-color);
    z-index: 100;
    overflow: hidden;
}

/* Loss landscape contour lines */
.navigation-path {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.detour-path {
    stroke: rgba(0, 0, 0, 0.8);
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 4, 3;
}

/* Local minima markers (subtle dots) */
.local-minimum-dot {
    fill: rgba(140, 80, 80, 0.5);
}

/* SVG Section markers */
.svg-section-marker {
    fill: var(--text-primary);
    stroke: var(--bg-paper);
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.2s;
    pointer-events: all;
}

.svg-section-marker:hover,
.svg-section-marker.active {
    fill: var(--accent);
}

/* SVG Section label text */
.section-label-text {
    font-family: var(--font-serif);
    font-size: 11px;
    fill: var(--text-secondary);
    pointer-events: none;
}

.section-marker-group {
    cursor: pointer;
}

.section-marker-group:hover .section-label-text {
    fill: var(--text-primary);
}

/* SVG Progress indicator */
.svg-progress-indicator {
    fill: var(--accent);
    stroke: var(--bg-paper);
    stroke-width: 2;
    pointer-events: none;
}

/* Global minimum marker */
.global-minimum-marker line {
    stroke: var(--text-primary);
    stroke-width: 3;
    stroke-linecap: round;
}

/* Contour lines SVG (legacy, can be removed if not used) */
.contour-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Algorithm boxes (LaTeX style) */
.algorithm-box {
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--bg-subtle);
    font-family: var(--font-serif);
}

.algorithm-box .algorithm-title {
    font-weight: 700;
    font-size: 10pt;
    margin-bottom: 12px;
    text-align: center;
}

.algorithm-box .algorithm-input,
.algorithm-box .algorithm-output {
    margin: 8px 0;
    font-size: 9.5pt;
}

.algorithm-box .algorithm-input strong,
.algorithm-box .algorithm-output strong {
    font-weight: 700;
}

.algorithm-box ol {
    margin: 12px 0 12px 20px;
    padding: 0;
    font-size: 9.5pt;
}

.algorithm-box ol li {
    margin: 6px 0;
    line-height: 1.5;
}

.algorithm-box .keyword {
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 9pt;
}

.algorithm-box .comment {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 9pt;
}

/* Comment-only lines should not be numbered */
.algorithm-box ol li.comment-line {
    list-style-type: none;
    margin-left: -20px;
}

/* Main Content Area */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-paper);
}

header {
    padding: 60px 40px 30px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.title {
    font-size: 17pt;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
}

.authors {
    font-size: 12pt;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: center;
}

.authors .equal-contrib {
    font-size: 9pt;
    vertical-align: super;
}

.affiliation {
    font-size: 10pt;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

/* Abstract/Hook */
.hook {
    font-size: 11pt;
    line-height: var(--line-height);
    color: var(--text-primary);
    padding: 20px;
    margin: 30px auto;
    max-width: var(--content-max-width);
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    text-align: justify;
}

.hook .highlight {
    font-style: italic;
}

/* Hook followup text */
.hook-followup {
    max-width: var(--content-max-width);
    margin: 0 auto 30px;
    padding: 0 20px;
}

.hook-followup p {
    font-size: 11pt;
    line-height: var(--line-height);
    text-align: justify;
}

/* Figure Environment - Full Width */
.opening-figure {
    margin: -10px 0 10px 0;
    width: 100%;
    padding: 20px;
    background: #f5f5f5;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.figure-title {
    font-size: 10pt;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text-primary);
}

.figure-caption {
    font-size: 9pt;
    color: var(--text-secondary);
    padding: 20px 40px;
    font-style: italic;
    text-align: justify;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* Stakeholder Grid Layout - With Row Labels */
.stakeholder-grid {
    display: grid;
    grid-template-columns: auto repeat(12, 1fr);
    gap: 6px;
    padding: 20px 10px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.stakeholder-label {
    font-size: 8pt;
    font-weight: 700;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    padding: 4px 0;
}

.row-label {
    font-size: 9pt;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 10px 0;
    white-space: nowrap;
    align-self: center;
}

.stakeholder-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: var(--bg-paper);
    display: block;
}

/* Image cell container for detour row (allows overlay positioning) */
.image-cell {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.image-cell .stakeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Detour overlay - shows which model is being used (source of adopted weights) */
.detour-overlay {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 32%;
    height: 32%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    display: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.frame-controls {
    padding: 16px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
}

/* Play button */
.play-btn {
    background: var(--text-primary);
    color: var(--bg-paper);
    border: none;
    padding: 6px 14px;
    font-size: 9pt;
    font-family: var(--font-serif);
    cursor: pointer;
    margin-right: 12px;
    border-radius: 3px;
    transition: background 0.2s;
}

.play-btn:hover {
    background: var(--text-secondary);
}

.frame-label {
    font-size: 9pt;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: center;
    font-family: var(--font-mono);
}

.frame-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border-light);
    outline: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-color);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: 1px solid var(--bg-paper);
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: 1px solid var(--bg-paper);
}

.frame-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.marker {
    font-size: 8pt;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Content Sections */
article {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 40px;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 14pt;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 16px;
    padding-top: 40px;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg,
        #8B4789 0%,
        #6B8E9E 25%,
        #89B5A0 50%,
        #D4A86A 75%,
        #C97064 100%) 1;
    color: var(--text-primary);
}

section#intro h2 {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

h3 {
    font-size: 12pt;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-top: 20px;
    color: var(--text-primary);
    position: relative;
}

h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 1.5px;
    background: linear-gradient(90deg,
        #8B4789 0%,
        #6B8E9E 25%,
        #89B5A0 50%,
        #D4A86A 75%,
        #C97064 100%);
}

/* No gradient bar for Section 4 (CelebA) h3 */
section#real-world h3::before {
    display: none;
}

p {
    margin-bottom: 10pt;
    color: var(--text-primary);
    text-align: justify;
}

ul, ol {
    margin-left: 24px;
    margin-bottom: 10pt;
}

li {
    margin-bottom: 4pt;
}

/* Math notation */
.math {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05em;
}

/* Roman (non-italic) math - for text like "train", "val", etc. */
.math-rm {
    font-family: var(--font-serif);
    font-style: normal;
    font-size: 1.05em;
}

/* Code and Math */
code {
    font-family: var(--font-mono);
    font-size: 10pt;
    background: var(--bg-subtle);
    padding: 1px 4px;
    border: 1px solid var(--border-light);
}

.equation {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 11pt;
    padding: 16px;
    margin: 16px 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    text-align: center;
    overflow-x: auto;
}

/* Horizontal rules / separators */
hr {
    display: block;
    margin: 60px auto;
    width: 800px;
    max-width: calc(100vw - 40px);
    border: none;
    border-top: 2px solid #ddd;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Figures */
.figure {
    margin: 30px 0;
    text-align: center;
}

.figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
}

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

a:hover {
    text-decoration: underline;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 9pt;
}

.data-table th,
.data-table td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--bg-subtle);
    font-weight: 700;
    border-bottom: 1.5px solid var(--border-color);
}

.data-table td {
    font-family: var(--font-mono);
}

.data-table tr:hover {
    background: var(--bg-subtle);
}

.improvement {
    color: #006600;
    font-weight: 600;
}

/* Acknowledgments */
.acknowledgments {
    font-size: 10pt;
    color: var(--text-secondary);
    padding: 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 40px;
        --content-max-width: 100%;
    }

    .title {
        font-size: 14pt;
    }

    article {
        padding: 20px;
    }

    header {
        padding: 40px 20px 20px;
    }
}

/* Function Learning Visualization */
.function-learning-figure {
    margin: 40px 0;
    width: 100%;
    padding: 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.fl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.fl-function-info {
    flex: 1;
    text-align: center;
}

.fl-function-title {
    font-size: 12pt;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.fl-function-desc {
    font-size: 10pt;
    color: var(--text-secondary);
    font-style: italic;
    font-family: var(--font-mono);
}

.fl-nav-btn {
    background: var(--bg-paper);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 14pt;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    min-width: 40px;
}

.fl-nav-btn:hover {
    background: var(--border-light);
}

.fl-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fl-function-counter {
    font-size: 9pt;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 4px;
}

.fl-plot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px;
    padding: 16px 16px 2px 16px;
}

.fl-plot-cell {
    position: relative;
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
}

.fl-canvas {
    width: 100%;
    height: 150px;
    display: block;
}

.fl-controls {
    padding: 8px 16px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
}

.fl-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.fl-play-btn {
    background: var(--text-primary);
    color: var(--bg-paper);
    border: none;
    padding: 6px 14px;
    font-size: 9pt;
    font-family: var(--font-serif);
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    min-width: 70px;
}

.fl-play-btn:hover {
    background: var(--text-secondary);
}

.fl-frame-label {
    font-size: 9pt;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    min-width: 150px;
}

.fl-slider-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.fl-toggle-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9pt;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
}

.fl-toggle-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.fl-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 4px 10px;
    font-size: 9pt;
    color: var(--text-secondary);
}

.fl-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fl-legend-line {
    width: 20px;
    height: 3px;
}

.fl-legend-line.ground-truth {
    background: rgba(128, 128, 128, 0.5);
}

.fl-legend-line.baseline {
    background: rgba(200, 50, 50, 0.8);
    border-top: 2px dashed rgba(200, 50, 50, 0.8);
    height: 0;
}

.fl-legend-line.final-path {
    background: rgba(34, 139, 34, 0.9);
}

.fl-legend-line.transfer {
    background: rgba(50, 100, 200, 0.9);
}

.fl-legend-line.singleobj-transfer {
    background: rgba(34, 139, 34, 0.9);
}

/* Results Table */
.results-table-figure {
    margin: 30px 0;
    overflow-x: auto;
}

.results-table-figure figcaption {
    margin-top: 10px;
    font-size: 9pt;
    color: var(--text-secondary);
    text-align: center;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    margin: 0 auto;
}

.results-table th,
.results-table td {
    padding: 8px 12px;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
}

.results-table th {
    background: var(--bg-subtle);
    font-weight: 700;
    border-bottom: 1.5px solid var(--border-color);
    text-align: center;
}

.results-table th:first-child,
.results-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.results-table td {
    font-family: var(--font-mono);
}

.results-table tr:hover {
    background: var(--bg-subtle);
}

.results-table .best {
    background: rgba(0, 180, 0, 0.1);
    font-weight: 600;
}

.results-table .better {
    color: #006600;
    font-weight: 600;
}

.results-table .worse {
    color: #990000;
}

/* Detailed table with all objectives */
.results-table.detailed-table {
    font-size: 8pt;
}

.results-table.detailed-table td {
    padding: 6px 8px;
    white-space: nowrap;
}

.results-table.detailed-table td span.best {
    color: #006600;
    font-weight: 600;
    background: none;
}

.results-table.detailed-table td span.worse {
    color: #990000;
    font-weight: normal;
}

/* Legend in table caption */
.table-legend-cross {
    color: #006600;
    font-weight: 600;
}

.table-legend-baseline {
    color: #990000;
}

/* Dynamic results table in function learning figure */
.fl-results-table-container {
    margin: 15px 20px 10px;
    overflow-x: auto;
}

.fl-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
}

.fl-results-table th,
.fl-results-table td {
    padding: 6px 10px;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
}

.fl-results-table th {
    background: var(--bg-subtle);
    font-weight: 600;
    border-bottom: 1.5px solid var(--border-color);
    text-align: center;
}

.fl-results-table th:first-child,
.fl-results-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.fl-results-table td {
    font-family: var(--font-mono);
}

.fl-results-table tr.cross-training td:first-child {
    color: rgba(50, 100, 200, 0.9);
}

.fl-results-table tr.baseline td:first-child {
    color: rgba(200, 50, 50, 0.8);
}

.fl-results-table td.winner {
    background: rgba(0, 180, 0, 0.1);
    font-weight: 600;
}

/* Responsive adjustments for function learning */
@media (max-width: 1200px) {
    .fl-plot-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .fl-plot-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }

    .fl-canvas {
        height: 120px;
    }

    .fl-header {
        flex-direction: column;
        gap: 10px;
    }

    .fl-nav-btn {
        padding: 6px 12px;
    }
}

/* Expanded NeRF Face Grid */
.nerf-expanded-container {
    /* Full width - same as opening-figure */
    margin: 40px 0;
    width: 100%;
    padding: 24px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nerf-expanded-container h4 {
    margin: 0 0 8px 0;
    padding-left: 20px;
    font-size: 11pt;
    color: var(--text-primary);
}

.nerf-expanded-desc {
    font-size: 9pt;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 20px;
    padding-right: 20px;
}

.nerf-expanded-grid {
    /* Container will be populated by JS with controls and grid */
}

.nerf-expanded-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.nerf-expanded-controls .play-btn {
    padding: 8px 16px;
    font-size: 9pt;
    background: var(--text-primary);
    color: var(--bg-paper);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 90px;
    font-family: var(--font-serif);
}

.nerf-expanded-controls .play-btn:hover {
    opacity: 0.8;
}

.nerf-expanded-controls .frame-slider {
    flex: 1;
    height: 6px;
}

.nerf-expanded-controls .frame-label {
    font-size: 9pt;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 180px;
}

.stakeholder-subgrid {
    max-width: 1200px;
    margin: 0 auto;
}

.stakeholder-subgrid .stakeholder-label {
    text-align: center;
    font-weight: bold;
    font-size: 8pt;
    padding: 6px 0;
    color: var(--text-primary);
}

.stakeholder-subgrid .row-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: bold;
    font-size: 7pt;
    padding: 0 8px;
    color: var(--text-primary);
}

.stakeholder-subgrid .stakeholder-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Old card styles - kept for backwards compatibility */
.nerf-face-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 8px;
    text-align: center;
}

.nerf-improvement {
    font-weight: 700;
    color: #228b22;
    margin-top: 4px;
}

[data-theme="dark"] .nerf-improvement {
    color: #5cb85c;
}

/* Print Styles */
@media print {
    .contour-sidebar {
        display: none;
    }

    .main-wrapper {
        margin-left: 0;
    }

    body {
        font-size: 10pt;
    }

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