body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #420e60;
    color: #222;
}
h1 {
    color: white;
    border-bottom: 4px solid #00ff00;
    padding-bottom: 10px;
    margin-top: 0;
}
h2 {
    margin-top: 0px;
    color: #420e60;
    margin-bottom: 15px;
    border-left: 4px solid #00ff00;
    padding-left: 10px;
    clear: both;
}
.tiny {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.5;
}
.section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}
.data-table th {
    background-color: #5e0a8f;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ecf0f1;
}
.data-table tr:hover td{
    background-color: #EBCFFC;
}
.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.note {
    color: #555;
    font-size: 14px;
    font-style: italic;
    margin: 10px 0;
    padding: 10px;
    background-color: #e8f4f8;
    border-left: 4px solid #00ff00;
    border-radius: 8px;
}
.fig {
    margin: 12px 0;
}
.figcap {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-style: italic;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
}
.card-hover {
    cursor: pointer;
    font-weight: 500;
    position: relative;
}
.card-hover:hover {
    border-bottom: 2px solid #2980b9;
}
.card-tooltip {
    position: absolute;
    left: 80%;
    bottom: 100%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 3px;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    margin-bottom: 10px;
    white-space: nowrap;
}
.card-tooltip img {
    width: 250px;
    height: auto;
    border-radius: 4px;
    display: block;
}
.card-tooltip.show {
    opacity: 1;
    pointer-events: auto;
}
.card-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #00ff00;
}
.summary-box {	
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.summary-stat {
    display: inline-block;
    margin: 10px 30px 10px 0;
    font-size: 18px;
}
.summary-stat strong {
    color: #3498db;
    font-size: 24px;
}
/* Plotly Pie Centered */
.js-plotly-plot {
    margin: 0 auto;
    display: block;
}