/* Investment Path – guide review
   Guided planner review step, assumption explainers and step navigation.
   ========================================================================== */

.guide-review {
    display: grid;
    gap: 0;
    margin-top: 25px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-alt);
}

.guide-review > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 15px;
}

.guide-review > div + div {
    border-top: 1px solid var(--border);
}

.guide-review dt {
    color: var(--text-faint);
    font-size: 10.5px;
}

.guide-review dd {
    color: var(--text);
    font-size: 11px;
    font-weight: 740;
    text-align: right;
}

.guide-review-editable > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.72fr);
}

.guide-review-editable dd {
    width: 100%;
}

.guide-review-entry {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
}

.guide-review-entry input,
.guide-review-editable select {
    min-width: 0;
    width: 100%;
    height: 39px;
    padding: 0 48px 0 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
    font: inherit;
    font-size: 11px;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.guide-review-editable select {
    padding-right: 32px;
}

.guide-review-entry > span {
    position: absolute;
    right: 10px;
    color: var(--text-faint);
    font-size: 8.5px;
    font-weight: 750;
    pointer-events: none;
}

.guide-review-entry input:focus-visible,
.guide-review-editable select:focus-visible {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.guide-review-entry input[aria-invalid="true"] {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.guide-small-assumptions {
    display: grid;
    gap: 12px;
}

.guide-inflation-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.guide-inflation-setting > div {
    display: grid;
    gap: 2px;
}

.guide-inflation-setting label {
    font-size: 11px;
    font-weight: 720;
}

.guide-inflation-setting > div > span {
    color: var(--text-faint);
    font-size: 9px;
    font-weight: 500;
}

.guide-number-entry {
    position: relative;
    width: 104px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.guide-number-entry input {
    width: 100%;
    height: 38px;
    padding: 0 40px 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
    font: inherit;
    font-size: 11.5px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.guide-number-entry > span {
    position: absolute;
    right: 9px;
    color: var(--text-faint);
    font-size: 8.5px;
    font-weight: 750;
    pointer-events: none;
}

.guide-number-entry input:focus-visible {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.guide-number-entry input[aria-invalid="true"] {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.guide-choice-custom:not(:has(input[type="radio"]:checked))
    .guide-number-entry {
    opacity: 0.42;
}

.guide-assumption-explainer {
    color: var(--text-faint);
    font-size: 9.5px;
    line-height: 1.55;
}

.guide-assumption-explainer strong {
    color: var(--text-dim);
}

.guide-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 7px;
}

.guide-source-links a,
.guide-tax-note a {
    color: var(--accent-2-text);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.guide-tax-assumptions {
    min-width: 0;
    margin-top: 14px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-alt);
}

.guide-step .guide-tax-assumptions > legend {
    max-width: none;
    padding: 0 5px;
    color: var(--text);
    font-size: 11px;
    font-weight: 740;
    line-height: 1.3;
    letter-spacing: 0;
}

.guide-tax-assumptions > p {
    color: var(--text-faint);
    font-size: 9.5px;
    line-height: 1.55;
}

.guide-tax-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.guide-tax-choice {
    min-height: 92px;
    padding: 12px 13px;
}

.guide-tax-choice .choice-main strong {
    font-size: 11px;
}

.guide-tax-choice .choice-main small {
    font-size: 9px;
    line-height: 1.42;
}

.guide-tax-choice.guide-choice-custom {
    display: flex;
    flex-wrap: nowrap;
}

.guide-tax-choice .guide-choice-select {
    min-width: 0;
}

.guide-tax-choice .guide-number-entry {
    width: 86px;
}

.guide-tax-note {
    margin-top: 11px;
}

.guide-tax-note a + a {
    margin-left: 9px;
}

.guide-error {
    margin-top: 16px;
    padding: 11px 13px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 11px;
    color: var(--red);
    background: var(--red-soft);
    font-size: 10.5px;
}

.guide-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.guide-back,
.guide-next {
    min-height: 45px;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 760;
    cursor: pointer;
    /* `color` was missing while .guide-back:hover animates it, so the border
       faded over 180ms and the label snapped instantly. */
    transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease,
        box-shadow 0.18s ease, border-color 0.18s ease;
}

.guide-back {
    border: 1px solid var(--border);
    color: var(--text-dim);
    background: transparent;
}

.guide-next {
    color: var(--on-glass);
}

.guide-back span,
.guide-next span {
    display: inline-block;
    transition: transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .guide-back:hover {
        transform: translateY(-1px);
        color: var(--text);
        border-color: var(--border-strong);
    }

    /* Each arrow travels the way its button goes. */
    .guide-back:hover span {
        transform: translateX(-3px);
    }

    .guide-next:hover span {
        transform: translateX(3px);
    }
}

.guide-next:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.guide-next:disabled::after {
    opacity: 0 !important;
}
