/* Berkshire Hathaway-inspired minimal styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.container {
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 24px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
    font-weight: normal;
    margin: 30px 0 18px 0;
    text-transform: uppercase;
}

.centered-heading {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
}

h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    font-weight: normal;
    margin: 22px 0 12px 0;
    font-style: italic;
}

hr {
    border: none;
    border-top: 1px solid #000;
    margin: 20px 0;
}

section {
    margin-bottom: 35px;
}

#overview .centered-heading {
    text-align: center;
    display: block;
    width: 100%;
    margin: 15px auto 12px auto;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

.fund-details p {
    margin-bottom: 8px;
}

ul, ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    text-align: justify;
}

.status-box {
    border: 1px solid #000;
    padding: 15px;
    margin: 20px 0;
    background-color: #f9f9f9;
}

.status-box p {
    margin-bottom: 8px;
}

.status-box p:first-child strong:first-child {
    color: #0066CC;
}

#strategy ul li:first-child strong {
    color: #0066CC;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin-bottom: 10px;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

footer a {
    color: #000;
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

/* Figure Style for Images, Charts, and Tables */
.figure-container {
    margin: 30px 0;
    text-align: center;
}

.figure-content {
    margin-bottom: 10px;
}

.figure-caption {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.figure-caption p {
    margin-bottom: 8px;
    text-align: center;
}

.figure-attribution {
    font-size: 12px;
    color: #888;
    font-style: italic;
    text-align: right;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #f0f0f0;
}

/* CEO Signature Image Section */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 44.4%; /* Aspect ratio: height = 480/1080 = 0.444 of width */
    overflow: hidden;
    margin-bottom: 15px;
}

.ceo-signature-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 51%; /* Show lower middle third vertically */
    border: 1px solid #ccc;
}

/* Table Styling (following figure style) */
.performance-table {
    margin-bottom: 10px;
    overflow-x: auto;
}

.performance-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    border: 1px solid #ccc;
    min-width: 300px; /* Ensure table doesn't get too narrow on mobile */
}

.performance-table th:nth-child(1),
.performance-table td:nth-child(1) {
    width: 25%; /* Year column */
}

.performance-table th:nth-child(2),
.performance-table td:nth-child(2) {
    width: 37.5%; /* Total Return column */
}

.performance-table th:nth-child(3),
.performance-table td:nth-child(3) {
    width: 37.5%; /* Net Return After Fees column */
}

.performance-table thead {
    border-bottom: 1px solid #000;
}

.performance-table th {
    font-weight: bold;
    text-align: center;
    padding: 10px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.performance-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 12px;
        font-size: 14px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    h2 {
        font-size: 16px;
        margin: 20px 0 12px 0;
    }
    
    #overview .centered-heading {
        margin: 10px auto 8px auto;
    }
    
    h3 {
        font-size: 15px;
        margin: 18px 0 8px 0;
    }
    
    ul, ol {
        margin-left: 18px;
    }
    
    .chart-container {
        height: 220px;
    }
    
    .performance-table table {
        font-size: 13px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 6px 8px;
    }
    
    .status-box {
        padding: 12px;
    }
    
    .figure-caption {
        font-size: 13px;
    }
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 13px;
    }
    
    h1 {
        font-size: 16px;
    }
    
    h2 {
        font-size: 15px;
        margin: 18px 0 10px 0;
    }
    
    #overview .centered-heading {
        margin: 8px auto 6px auto;
    }
    
    h3 {
        font-size: 14px;
        margin: 16px 0 8px 0;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .performance-table table {
        font-size: 12px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 5px 6px;
    }
}

/* Tablet and medium devices (768px and below) */
@media (max-width: 768px) {
    .chart-container {
        height: 240px;
    }
}
