/* ObservableHQ styles */
aside#observablehq-toc {
    display: none;
}

main#observablehq-main{
    width: 100%;
    min-height: calc(100% - 4cm);
}

/* Page styles */
text {
    font-family: "Quicksand", "Lato", sans-serif;
}

/* Header styles */
header {
    background-color: #1F355E;
    display: grid;
    height: 100%;
    width: 100%;
    font-family: "Lato", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: white;
}

.header-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
    align-items: center;
}

.logo-pair {
    text-align: right;
    padding-right: 5%;
}
#andko-header-logo {
    height: 100px;
    width: auto;
    padding-left: 3%;
}
#kco-header-logo {
    height: 60px;
    width: auto;
}

#report-date-container {
    font-size: 1.25em;
    display: grid;
    grid-template-rows: auto auto;
    text-align: left;
    padding-left: 5%;
}
#pres-title {
    font-size: 1.5em;
}

/* Divider styles */
.divider {
    padding-left: 10px;
}

.subtitle {
    font-size: 1.5em;
    font-weight: 500;
    margin: 0;
    padding: 0.5rem 0;
    color: black;
    font-family: "Quicksand", "Lato", sans-serif;
    border-bottom: 1px solid black;
}

.section-explanation {
    grid-column: 1 / 5;
    font-size: 14pt;
    color: #333;
    margin-bottom: 8px;
    font-style: italic;
}

/* Layout styles for graphs */
.grid.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    padding: 20px;
    padding-bottom: 0px;
    padding-top: 30px;
    min-height: 400px;
}

#horizontal-bars-per-funnel-stage, #funnel-chart-container {
    width: 100%;
    height: 100%;
    padding-top: 0px;
    min-height: 450px;
}

.grid.app-pacing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr .25fr 1fr;
    grid-template-rows: .25fr auto auto auto;
    gap: 20px;
    padding: 20px;
}

.pacing-line-graph {
    grid-column: 1 / 3;
    min-height: 250px;
}


.table-section-title {
    margin-bottom: 10px;
}

.pacing-table {
    grid-column: 4 / 5;
    margin-top: 10px;
}

.tabulator-row {
    min-height: 50px;
    font-size: 14px;
}

.tabulator-cell {
    text-align: center;
    vertical-align: middle;
    min-height: 50px;
    font-size: 14px;
}

#funnel-label {
    border-bottom: 2px solid black;
}

#funnel-explanation {
    padding-top: 10px;
}

.title {
    font-size: 3em;
    text-align: center;
    grid-column: span 2;
}
#source-treemap svg {
    width: 100%;
}

.pdf-button-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

#save-pdf-btn {
    background-color: #1F355E;
    border-color: #1F355E;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#save-pdf-btn:hover {
    background-color: #2a4a7a;
    border-color: #2a4a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#save-pdf-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.channel-spend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    grid-template-rows: .25fr 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.spend-bar-graph {
    grid-column: 4 / 5;
    grid-row: 2 / 4;
    height: 100%;
}

.channel-spend-grid-titles {
    grid-column: 1 / 4;
    grid-row: 2 / 4;
}

#funnel-channel-reports {
    grid-column: 1 / 4;
    grid-row: 1;
    /* border-bottom: 2px solid black; */
    padding-bottom: 2px;
    display: inline-block;
}

.source-graph {
    height: 100%;
    margin-left: 2% ;
    margin-right: 2% ;
}

#marketing-spend-title {
    grid-column: 4 / 5;
    grid-row: 1;
    /* border-bottom: 2px solid black; */
    padding-bottom: 8px;
    display: inline-block;
}

.admit-rate-box {
    grid-column: 1 / span 2;
    grid-row: 1;
    /* 1.25 columns: span 2 but set width to 125% of one column */
    width: 40%;
    margin-left: 20%;
    background: #f5faff;
    border: 2px solid #1F355E;
    border-radius: 8px;
    padding: 18px 24px;
    margin-top: 10px;
    font-size: 1em;
    font-weight: 600;
    color: #1F355E;
    box-shadow: 0 2px 8px rgba(31,53,94,0.07);
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.yield-rate-box {
    grid-column: 3 / 5;
    grid-row: 1;
    background: #fff9f5;
    border: 2px solid #FADA7A;
    border-radius: 8px;
    padding: 18px 24px;
    margin-top: 10px;
    font-size: 1em;
    font-weight: 600;
    color: #B8860B;
    box-shadow: 0 2px 8px rgba(250,218,122,0.07);
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    margin-right: 30%;
}

.app-pacing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.student-makeup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
    padding: 20px;
    align-items: stretch;
}

.student-makeup-bar-chart {
    height: 100%;
    min-height: 300px;
}

.international-student-funnel {
    grid-column: 1;
    grid-row: 1;
}

.transfer-student-funnel {
    grid-column: 2;
    grid-row: 1;
}