/* --- RESET & BASE --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

tml, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height: 1;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    padding-bottom: 5em;
}

:root {
    --bg: #f5f7fa;
    --text: #222;
    --card: #fff;
    --border: #e0e0e0;
    --primary: #34529e;
    --button-bg: #34529e;
    --button-text: #fff;
    --button-hover: #223366;
    --shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
}

[data-theme="dark"] {
    --bg: #181c24;
    --text: #f5f7fa;
    --card: #232a36;
    --border: #2c3442;
    --primary: #7ea2ff;
    --button-bg: #223366;
    --button-text: #fff;
    --button-hover: #34529e;
    --shadow: 0 2px 12px 0 rgba(0,0,0,0.25);
}

/* --- LAYOUT --- */
#pie-charts-row {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}

.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75em;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 24px 12px 12px 12px;
    margin-bottom: 20px;
    transition: background 0.3s, box-shadow 0.3s;
}

.pie-chart-canvas {
    width: 100%;
    min-width: 320px;
    max-width: 600px;
    aspect-ratio: 1/1;
    height: auto !important;
    background: var(--card);
    flex-shrink: 1;
    flex-grow: 1;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

#graph {
    padding: 10px;
    margin: 30px 10px;
}

#graph h1 {
    margin: 30px 10px 20px 5px;
    font-size: 1.2em;
    color: var(--primary);
}

#graph img {
    max-width: 1166px;
    width: 100%;
}

a.button {
    display: inline-block;
    text-decoration: none;
    color: var(--button-text);
    background: var(--button-bg);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin: 10px 0;
    transition: background 0.2s;
    box-shadow: var(--shadow);
    border: none;
}
a.button:hover {
    background: var(--button-hover);
}

.tableauPlaceholder {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 30px auto;
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 100;
    background: var(--card);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.3s, color 0.3s;
}
.theme-toggle:hover {
    background: var(--primary);
    color: var(--button-text);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {

    #pie-charts-row {
        flex-direction: column;
        align-items: center;
        width: 100vw;
        max-width: calc(100vw - 3em);
    }
    .pie-chart-container {
        width: 100%;
        justify-content: center;
    }
    .pie-chart-canvas {
        min-width: 220px;
        max-width: 95vw;
    }
}

#viz1745271290272 {height: unset!important; padding: 4.5rem 0!important;margin: 0!important;}
#graph {margin: 0!important;padding: 0!important;}
#myPieChart, #myPieChart2{ background: white!important; padding: 1em;}