/* College & Education Planner (Pages/CollegePlanner). The layout uses the Comprehensive panel classes in stylesv53.css
   (inputs on the left, results on the right) and the card, tile, table and callout classes of RothConversion.css.
   Each path keeps one color on its card, the chart and the tables (CollegePlannerColors). */

.college-planner-page {
    --cp-ink: #181c32;
    --cp-ink-2: #3d4a5c;
    --cp-muted: #5c6d82;
    --cp-line: #e4e8f0;
    --cp-blue: #0b5ed7;
    --cp-good: #11753a;
    --cp-warn: #b45309;
    --cp-bad: #b42318;
}

.main-layout-comprehensive > .comprehensive-sidebar-host--assumptions.cp-inputs-host {
    --assumptions-page-max-width: 440px;
}

.workspaceView .workspace-tab-pane-scroll.cp-pane {
    align-items: stretch;
    padding: 0 0.6rem 1.25rem;
    container-type: inline-size;
}

/* ---------------------------------------------------------------- Inputs: mode switch and students */

.cp-mode-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0.45rem;
    padding: 3px;
    border-radius: 9px;
    background: #eef1f6;
}

.cp-mode-switch button {
    border: none;
    background: transparent;
    padding: 0.35rem 0.5rem;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cp-ink-2, #3d4a5c);
}

.cp-mode-switch button.active {
    background: #2a78d6;
    color: #fff;
    box-shadow: 0 1px 3px rgba(24, 28, 50, 0.18);
}

.cp-students {
    padding: 0.55rem 0.35rem 0.35rem;
}

.cp-student-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.cp-student-pill {
    border: 1px solid #c9d2df;
    background: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cp-ink-2, #3d4a5c);
}

.cp-student-pill.active {
    border-color: #2a78d6;
    background: #eaf2fc;
    color: #0b4fae;
}

.cp-student-pill-age {
    font-weight: 400;
    color: var(--cp-muted, #5c6d82);
    margin-left: 0.15rem;
}

.cp-student-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cp-student-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--cp-ink, #181c32);
}

.cp-student-meta {
    font-size: 0.875rem;
    color: var(--cp-muted, #5c6d82);
}

.cp-student-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cp-student-links .ev-hyperlink-btn {
    padding-left: 0;
    padding-right: 0;
}

.cp-remove-link {
    color: var(--cp-muted, #5c6d82) !important;
}

/* ---------------------------------------------------------------- Inputs: guided questions */

.cp-guided {
    padding: 0.2rem 0.35rem 1rem;
}

.cp-stepper {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.15rem;
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0.75rem;
}

.cp-step button {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--cp-muted, #5c6d82);
}

.cp-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #c9d2df;
    background: #fff;
    color: #8a93a3;
}

.cp-step--done .cp-step-dot {
    background: #2a78d6;
    border-color: #2a78d6;
    color: #fff;
}

.cp-step--current .cp-step-dot {
    border-color: #2a78d6;
    color: #0b4fae;
    box-shadow: 0 0 0 3px #dbe9fb;
}

.cp-step-label {
    font-size: 0.6875rem;
    line-height: 1.15;
    text-align: center;
}

.cp-step--current .cp-step-label {
    color: #0b4fae;
    font-weight: 700;
}

.cp-question {
    background: #fff;
    border: 1px solid var(--cp-line, #e4e8f0);
    border-radius: 12px;
    padding: 0.9rem 0.85rem 0.85rem;
    box-shadow: 0 1px 6px rgba(24, 28, 50, 0.05);
}

.cp-question h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--cp-ink, #181c32);
}

.cp-question-help {
    font-size: 0.8125rem;
    color: var(--cp-muted, #5c6d82);
    margin: 0 0 0.6rem;
    line-height: 1.45;
}

.cp-note {
    margin-top: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: #f0f6fe;
    border: 1px solid #d6e4f5;
    border-left: 3px solid #2a78d6;
}

.cp-note-head {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b4fae;
    margin-bottom: 0.2rem;
}

.cp-note-head .bi {
    margin-right: 0.2rem;
}

.cp-note-text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cp-ink-2, #3d4a5c);
}

.cp-guided-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.cp-guided-nav .ev-btn {
    width: auto;
}

/* ---------------------------------------------------------------- Inputs: paths */

.cp-path-block {
    border: 1px solid var(--cp-line, #e4e8f0);
    border-radius: 10px;
    margin: 0.4rem 0 0.6rem;
    background: #fff;
}

.cp-question .cp-path-block {
    margin: 0.45rem 0;
}

.cp-path-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid var(--cp-line, #e4e8f0);
    background: #f7f9fc;
    border-radius: 10px 10px 0 0;
    font-size: 0.8125rem;
}

.cp-path-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--cp-path-color, #2a78d6);
    flex: 0 0 auto;
}

.cp-path-num {
    font-weight: 700;
    color: var(--cp-ink, #181c32);
    white-space: nowrap;
}

.cp-path-title {
    color: var(--cp-muted, #5c6d82);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-icon-btn {
    border: none;
    background: transparent;
    color: var(--cp-muted, #5c6d82);
    padding: 0 0.2rem;
    line-height: 1;
}

.cp-icon-btn:hover {
    color: var(--cp-bad, #b42318);
}

.cp-path-block .calc-input-table {
    margin: 0.15rem 0;
}

.cp-path-block--compact .calc-input-table tr td:first-child {
    width: 34%;
}

.cp-path-block--compact .calc-input-table tr td:last-child {
    width: 66%;
}

.cp-add-path {
    text-align: left;
    white-space: normal;
    padding-left: 0 !important;
}

.cp-add-path-note {
    padding: 0.3rem 0.1rem !important;
}

/* ---------------------------------------------------------------- Summary */

.cp-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.cp-summary-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--cp-ink, #181c32);
}

.cp-summary-head p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--cp-muted, #5c6d82);
}

.cp-path-cards {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(var(--cp-columns, 3), minmax(0, 1fr));
}

.cp-path-cards--1 { --cp-columns: 1; }
.cp-path-cards--2 { --cp-columns: 2; }
.cp-path-cards--3 { --cp-columns: 3; }
.cp-path-cards--4 { --cp-columns: 4; }

@container (max-width: 980px) {
    .cp-path-cards--4 { --cp-columns: 2; }
}

@container (max-width: 700px) {
    .cp-path-cards--3,
    .cp-path-cards--4 { --cp-columns: 2; }
}

@container (max-width: 480px) {
    .cp-path-cards { --cp-columns: 1 !important; }
}

.cp-path-card {
    position: relative;
    border: 1px solid var(--cp-line, #e4e8f0);
    border-top: 4px solid var(--cp-path-color, #2a78d6);
    border-radius: 10px;
    padding: 0.75rem 0.85rem 0.8rem;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.15s ease, background 0.15s ease;
    min-width: 0;
}

.cp-path-card:hover {
    box-shadow: 0 2px 10px rgba(24, 28, 50, 0.08);
}

.cp-path-card--focused {
    background: #f7fbff;
    box-shadow: 0 0 0 2px #c5dff4;
}

.cp-path-card--add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    border: 1.5px dashed #b8c4d6;
    background: #fafbfd;
    color: var(--cp-muted, #5c6d82);
    min-height: 12rem;
}

.cp-path-card--add:hover {
    border-color: #2a78d6;
    background: #f3f8fe;
}

.cp-path-card--add .bi {
    font-size: 1.6rem;
    color: #2a78d6;
}

.cp-path-card--add .cp-path-card-title {
    color: #0b4fae;
}

.cp-path-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cp-ink, #181c32);
    line-height: 1.3;
}

.cp-path-card-sub {
    font-size: 0.8125rem;
    color: var(--cp-muted, #5c6d82);
    line-height: 1.4;
}

.cp-label {
    margin-top: 0.6rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cp-muted, #5c6d82);
}

.cp-path-card-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--cp-ink, #181c32);
    line-height: 1.25;
    margin: 0.1rem 0 0.05rem;
    font-variant-numeric: tabular-nums;
}

.cp-meter {
    height: 7px;
    border-radius: 999px;
    background: #eceff4;
    overflow: hidden;
    margin-top: 0.7rem;
}

.cp-meter-fill {
    height: 100%;
    border-radius: 999px;
}

.cp-meter-fill--good { background: #22a35a; }
.cp-meter-fill--warn { background: #f0a020; }
.cp-meter-fill--bad { background: #e34948; }

.cp-meter-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.3rem;
    font-size: 0.8125rem;
    color: var(--cp-ink-2, #3d4a5c);
}

.cp-meter-row b {
    font-size: 0.9375rem;
}

.cp-warn-text {
    color: var(--cp-warn, #b45309);
}

.cp-path-card-status {
    margin-top: 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--cp-ink-2, #3d4a5c);
}

.cp-footnote-inline {
    margin: 0.7rem 0 0;
    font-size: 0.75rem;
    color: var(--cp-muted, #5c6d82);
}

.cp-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 0.85rem;
    max-width: 1180px;
    margin: 0 auto 0.85rem;
    width: 100%;
}

.cp-summary-row--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cp-summary-row > .rc-card {
    margin: 0;
    max-width: none;
}

/* The chart and Ways to Pay share the row when there is room, split it evenly in a narrower window, and stack
   below that; the three small cards stack last. */
@container (max-width: 1150px) {
    .cp-summary-row:not(.cp-summary-row--cards) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 820px) {
    .cp-summary-row,
    .cp-summary-row--cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cp-chart-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.cp-chart-select {
    width: auto;
    font-size: 0.8125rem;
    border: 1px solid #c9d2df;
    border-radius: 6px;
    padding: 0.15rem 0.4rem;
    background: #fff;
}

.cp-ways-table td:first-child {
    white-space: normal;
    min-width: 9rem;
}

.cp-ways-table th {
    white-space: normal;
}

.cp-ways-table th.cp-nowrap,
.cp-ways-table td.text-end {
    white-space: nowrap;
}

.cp-ways-best > td {
    background: #f1fbf4;
}

.cp-ways-note {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cp-ink-2, #3d4a5c);
    margin: 0.5rem 0 0;
}

.cp-ways-note--small {
    font-size: 0.75rem;
    color: var(--cp-muted, #5c6d82);
}

.cp-mini-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--cp-ink, #181c32);
}

.cp-mini-card h3 .bi {
    color: #2a78d6;
    margin-right: 0.25rem;
}

.cp-mini-card p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cp-ink-2, #3d4a5c);
    margin: 0;
}

.cp-disclaimer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

.cp-family-title {
    text-align: left;
}

.cp-family-table td,
.cp-family-table th {
    white-space: nowrap;
}

/* ---------------------------------------------------------------- Ways to Pay and Year by Year */

.cp-ways-path .rc-card-title h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cp-path-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.cp-path-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #c9d2df;
    border-radius: 8px;
    background: #fff;
    padding: 0.25rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cp-ink-2, #3d4a5c);
}

.cp-path-tab.active {
    border-color: var(--cp-path-color, #2a78d6);
    box-shadow: inset 0 -3px 0 var(--cp-path-color, #2a78d6);
    color: var(--cp-ink, #181c32);
}

/* ---------------------------------------------------------------- Costs by State */

.cp-state-table td:first-child {
    white-space: normal;
}

.cp-home-row > td {
    font-weight: 700;
}

/* ---------------------------------------------------------------- Simulated futures */

.cp-slider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.cp-range {
    flex: 1 1 auto;
    min-width: 0;
    accent-color: #2a78d6;
    height: 1.25rem;
}

.cp-slider-value {
    flex: 0 0 2.6rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.875rem;
    color: #0b4fae;
    font-variant-numeric: tabular-nums;
}

.cp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
}

.cp-chart-caption {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--cp-muted, #5c6d82);
}

.cp-mc-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.cp-mc-title > div:first-child {
    flex: 1 1 26rem;
    min-width: 0;
}

.cp-mc-target {
    flex: 0 0 15rem;
    border: 1px solid var(--cp-line, #e4e8f0);
    border-radius: 10px;
    padding: 0.45rem 0.7rem 0.35rem;
    background: #f7fbff;
}

.cp-mc-target label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cp-muted, #5c6d82);
}

.cp-mc-table th.cp-th-group {
    border-bottom: 1px solid #d6dde8;
}

.cp-mc-table th {
    white-space: normal;
    line-height: 1.25;
}

.cp-mc-table th.cp-mc-chance {
    max-width: 7.5rem;
}

.cp-mc-table thead tr + tr th {
    white-space: nowrap;
}

.cp-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin: 0 0.15rem 0 0.25rem;
    vertical-align: baseline;
}

.cp-chart-caption .cp-dot:first-child {
    margin-left: 0;
}

.cp-mc-table td {
    white-space: nowrap;
}

.cp-mc-table td:first-child {
    white-space: normal;
    min-width: 10rem;
}

.cp-mc-table td,
.cp-mc-table th {
    vertical-align: middle;
}

.cp-mc-table .cp-path-swatch,
.cp-nest-table .cp-path-swatch {
    margin-right: 0.3rem;
}

.cp-muted-small {
    font-size: 0.75rem;
    color: var(--cp-muted, #5c6d82);
}

.cp-method-list {
    margin: 0;
    padding-left: 1.05rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cp-ink-2, #3d4a5c);
}

.cp-method-list li + li {
    margin-top: 0.35rem;
}

.cp-nest-lead {
    font-size: 0.9375rem;
    margin: 0 0 0.6rem;
}

.cp-nest-table td:first-child,
.cp-nest-table th:first-child {
    width: 3.5rem;
    text-align: center;
}

.cp-nest-notes {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cp-ink-2, #3d4a5c);
}

.cp-nest-notes li + li {
    margin-top: 0.3rem;
}
