/* Long-Term Care Needs calculator. The page reuses the Roth Conversion calculator's cards, tiles, panels and tables
   (RothConversion.css); these are the pieces of its own. */

/* A person's color beside the name. */
.ltc-person-key {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 2px;
    margin-right: 0.3rem;
    vertical-align: baseline;
}

.ltc-sep {
    margin: 0 0.4rem;
    color: #9aa3b2;
}

/* How long care lasts, of 100 simulated lives: one stacked bar per person. */
.ltc-bars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.4rem 0 0.5rem;
}

.ltc-bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ltc-bar-name {
    flex: 0 0 6.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2b3a4e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ltc-bar {
    flex: 1 1 auto;
    display: flex;
    gap: 2px;
    height: 1.6rem;
    min-width: 0;
}

.ltc-bar-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2a37;
    overflow: hidden;
}

.ltc-bar-seg:first-child {
    border-radius: 4px 0 0 4px;
}

.ltc-bar-seg:last-child {
    border-radius: 0 4px 4px 0;
}

.ltc-bar-seg--dark {
    color: #ffffff;
}

.ltc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    margin: 0 0 0.4rem 7.1rem;
    font-size: 0.75rem;
    color: #3d4a5c;
}

.ltc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ltc-legend-swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
}

/* How It Works: numbered steps. */
.ltc-steps {
    padding-left: 1.3rem;
    margin: 0.4rem 0 0.6rem;
}

.ltc-steps li {
    margin-bottom: 0.7rem;
}

.ltc-steps h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0b3a66;
    margin: 0 0 0.2rem;
}

.ltc-steps p {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #3d4a5c;
    margin: 0;
}

.ltc-sources li {
    font-size: 0.75rem;
}

/* The hypothetical-results notice at the foot of a tab. */
.ltc-notice {
    margin: 1rem 0 0.25rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #6b7a8f;
}

@container (max-width: 640px) {
    .ltc-bar-name {
        flex-basis: 4.5rem;
    }

    .ltc-legend {
        margin-left: 0;
    }
}

/* Tables sized to their figures rather than the whole width. */
.ltc-cost-table {
    max-width: 48rem;
}

.ltc-setaside-table {
    max-width: 30rem;
}

.ltc-age-table {
    max-width: 52rem;
}
