:root {
/* colors */
    --russian-violet: hsl(269, 36%, 22%);
    --dark-purple: hsl(268, 22%, 15%);
    --eerie-black: hsl(240, 4%, 10%);
    --davys-gray: hsl(0, 0%, 34%);
    --light-gray: hsl(0, 0%, 84%);
    --cultured-1: hsl(0, 0%, 98%);
    --cultured-2: hsl(280, 14%, 96%);
    --cultured-3: hsl(280, 9%, 94%);
    --gainsboro: hsl(0, 1%, 85%);
    --black_10: hsla(0, 0%, 0%, 0.1);
    --black_5: hsla(0, 0%, 0%, 0.05);
    --pumpkin: hsl(22, 90%, 56%);
    --white: hsl(0, 0%, 100%);
    --black: hsl(0, 0%, 0%);

/* typography */

    --ff-poppins: 'Poppins', sans-serif;
    --ff-roboto: 'Roboto', sans-serif;

    --fs-1: 3rem;
    --fs-2: 2rem;
    --fs-3: 1.5rem;
    --fs-4: 1.4rem;
    --fs-5: 1.3rem;

    --fw-900: 900;
    --fw-700: 700;
    --fw-600: 600;
    --fw-500: 500;

/* spacing */
    --section-padding: 50px;

/* boz shadow */
    --shadow-1: 0px 0px 20px var(--black_10);
    --shadow-2: 0 0 20px 4px var(--black_5);

/* border radius */
    --radius-6: 6px;
    --radius-10: 10px;

/* transition */
    --transition-1: 0.25s ease;
    --transition-2: 0.5s ease;
    --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
    --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}

h1 {
    font-size: var(--fs-1);
    margin: 5rem auto;
}

.full-screen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    overflow: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    background-color: var(--russian-violet);
    color: var(--white);
    z-index: 10;
}


.modal-body {
    font-family: var(--ff-poppins);
    flex: 1 1 auto;
    padding: 16px;
    background-color: var(--white);
    overflow-y: auto;
}

.btn-close {
    font-size: var(--fs-3);
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.survey-wrapper {
    height: 100%;
    width: 100%;
}

.survey-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

#echarts-tree {
    min-height: 500px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}


#echarts-bar {
    min-height: 500px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.summary-logo {
    width: 44px;
    height: auto;
    object-fit: contain;
}

.summary-headline {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 6px 10px;
}


.headline-title {
    flex: 1;
    font-size: var(--fs-3);
    font-weight: 700;
    text-align: center;
}

#scenario-summaries {
    background: var(--white);
    padding-top: 20px;
    margin-top: 20px;
    position: relative;
}

.summary-text {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.summary-text p {
    margin: 6px 0;
    font-size: var(--fs-4);
}

#scenario-summaries h3 {
    margin-bottom: 12px;
    font-size: var(--fs-5);
    color: #222;
}

#scenario-summaries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#scenario-summaries li {
    margin-bottom: 16px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#scenario-summaries li:last-child {
    border-bottom: none;
}

#scenario-summaries em {
    color: var(--eerie-black);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    margin-bottom: 24px;
}
.summary-table th,
.summary-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f5;
    text-align: center;
    vertical-align: middle;
}
.summary-table thead th {
    background: #f7f9fc;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}
.summary-table .section th {
    background: #ecf0f1;
    color: #34495e;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}
.summary-table .highlight {
    font-size: var(--fs-5);
    font-weight: 700;
    color: #2c3e50;
}
@media print { .summary-table { box-shadow: none; } }


.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
}

.accordion-header {
    background: var(--davys-gray);
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    font-size: var(--fs-5);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: var(--russian-violet);
}

.accordion-summary {
    font-weight: var(--fw-500);
    color: var(--white);
    font-size: var(--fs-5);
    margin-left: 6px;
}

.accordion-header.active {
    font-weight: bold;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    background: var(--white);
    padding: 0 12px;
}

.accordion-content p {
    margin: 8px 0;
    font-size: var(--fs-5);
    color: (--white);
}

.section-card {
    background: var(--white);              /* ensure white for PDF */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 16px;
}

#results-container img, #results-container canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.pdf-break {
    break-before: page;     /* modern */
    page-break-before: always;  /* legacy */
}
