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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
}

/* Layout */
.main-layout {
    min-height: 100vh;
}

.performance-container {
    max-width: 1504px;
    margin: 0 auto;
    padding: 2rem;
}

.scenarios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header-section {
    margin-bottom: 2rem;
}

.title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.title-section h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
}

/* Blazor enhanced navigation puts tabindex="-1" on the page <h1> and focuses
   it on load (for screen reader announcement). Suppress the resulting focus
   ring — H1s aren't normally interactive, so removing the outline here costs
   no keyboard a11y. */
h1:focus {
    outline: none;
    box-shadow: none;
}

/* Sections */
.fund-info-section,
.pre-chart-disclaimers,
.chart-section,
.table-section,
.conditional-labels-section,
.info-section,
.description-section,
.basic-info-section,
.footer-info-section {
    margin-bottom: 2rem;
}

/* Loading and Error States */
.loading-container,
.error-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f7fafc;
}

.error-container {
    border-color: #fc8181;
    background-color: #fff5f5;
}

.error-container h2 {
    color: #c53030;
    margin-bottom: 1rem;
}

/* Utility classes */
.word-break {
    word-break: break-word;
}
